Skip to content

eBPF-based security platform

ci: scan the Python sources with CodeQL too

Daniel Borkmannfc34d3fb3856
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 6e980353..552dfbe3 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -11,25 +11,34 @@ permissions:
jobs:
analyze:
- name: Analyze (C)
+ name: Analyze (${{ matrix.name }})
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - language: c-cpp
+ name: C
+ - language: python
+ name: Python
+
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# The full build needs the BTF of a bpf-next kernel for vmlinux.h and
- # an OpenSSL 3.5 toolchain, neither of which the runner has, so the
- # sources are extracted without a build. The vendored libbpf is left
- # to its own project's scans.
+ # an OpenSSL 3.5 toolchain, neither of which the runner has, so the C
+ # sources are extracted without a build, as Python always is. The
+ # vendored libbpf is left to its own project's scans.
- name: Initialize CodeQL
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
- languages: c-cpp
+ languages: ${{ matrix.language }}
build-mode: none
queries: +security-extended,security-and-quality
config-file: ./.github/codeql/codeql-config.yml
@@ -37,4 +46,4 @@ jobs:
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
with:
- category: /language:c-cpp
+ category: /language:${{ matrix.language }}