Skip to content

CodeQL

CodeQL #76

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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -qqy nasm
- name: Initialize CodeQL
uses: github/codeql-action/init@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
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@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
with:
category: "/language:${{ matrix.language }}"