Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,20 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.25.11"
cache: true

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
build-mode: none
# Go does not support build-mode: none; autobuild runs `go build`,
# which needs no C/libbpf toolchain (the validator is a separate
# non-Go component).
build-mode: autobuild
queries: security-and-quality

- name: Perform CodeQL Analysis
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
permissions:
security-events: write # upload SARIF to code scanning
id-token: write # publish results to the Scorecard API
actions: read # evaluate workflow token-permission/pinning checks
contents: read
steps:
- name: Checkout
Expand All @@ -38,7 +39,7 @@ jobs:
persist-credentials: false

- name: Run analysis
uses: ossf/scorecard-action@v2
uses: ossf/scorecard-action@v2.4.3
with:
results_file: results.sarif
results_format: sarif
Expand Down
5 changes: 3 additions & 2 deletions docs/supply-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ These are not files in the repo. Track their status here.

- `publish_results: true` in the Scorecard workflow requires the repository to
be public; it is a no-op signal otherwise.
- CodeQL uses `build-mode: none`, so it does not need the C/libbpf validator
toolchain (the validator is a separate non-Go component).
- CodeQL uses `build-mode: autobuild` (Go does not support `none`); autobuild
runs `go build`, which does not need the C/libbpf validator toolchain (the
validator is a separate non-Go component).
- The `Kernel-Guard` GitHub org and the "KernelGuard" site branding should be
reconciled before a wider public launch; see the project roadmap.
Loading