Files
chipsec-chipsec/.github/workflows/codeql.yml
T
Nathaniel Mitchell 0a06dcd4e6 Workflow: Update branch ref names
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2026-03-10 09:37:03 -07:00

59 lines
1.3 KiB
YAML

name: "CodeQL"
on:
push:
branches: [ "chipsec2", "chipsec1" ]
pull_request:
branches: [ "chipsec2" ]
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@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install dependencies
run: |
sudo apt-get update -q
sudo apt-get install -qqy nasm
- name: Initialize CodeQL
uses: github/codeql-action/init@cdefb33c0f6224e58673d9004f47f7cb3e328b89
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@cdefb33c0f6224e58673d9004f47f7cb3e328b89
with:
category: "/language:${{ matrix.language }}"