Skip to content

CodeQL

CodeQL #32

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "main", "dev-2.0.0" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: "24 15 * * 3"
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ python, cpp ]
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -qqy nasm
- name: Initialize CodeQL
uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Build the driver
run: |
cd drivers/linux
make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
with:
category: "/language:${{ matrix.language }}"