CI(codeql): Scan GitHub Actions workflows - #414
Open
ModeSevenIndustrialSolutions wants to merge 1 commit into
Open
ModeSevenIndustrialSolutions wants to merge 1 commit into
ModeSevenIndustrialSolutions wants to merge 1 commit into
Conversation
The advanced CodeQL workflow calls the shared reuse-python-codeql workflow, which scans Python only, so this repository's GitHub Actions workflows, a language GitHub detects here, have never been scanned. Add a sibling job scanning the actions language, hardened exactly as the shared workflow's job is: egress blocked to the org allow-list, credentials not persisted, and the same pinned action versions. A one-entry language matrix gives the upload the same category shape as the Python scan's. Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
ModeSevenIndustrialSolutions
requested review from
a team
and
a balanced review from Copilot
September 25, 2026 05:15
|
Copilot started reviewing on behalf of
ModeSevenIndustrialSolutions
September 25, 2026 05:16
View session
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The new job correctly adds the missing analysis while matching the repository’s established security controls.
Review effort: Balanced
Findings: None
What changed in this PR
Adds CodeQL coverage for GitHub Actions workflows alongside the existing Python scan.
Changes:
- Adds an
actionslanguage analysis job. - Applies pinned, hardened CI dependencies and restricted permissions.
| File | Description |
|---|---|
.github/workflows/codeql.yml |
Adds the hardened GitHub Actions CodeQL scan. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
The advanced CodeQL workflow calls the shared
reuse-python-codeqlworkflow, which scans Python only, so this repository's GitHub Actions workflows, a language GitHub detects here, have never been scanned.This adds a sibling
other-languagesjob to.github/workflows/codeql.ymlscanningactions, hardened exactly as the shared workflow's job is:harden-runner-block-action+harden-runnerinblockmode);persist-credentials: falseon checkout;Found by the new CodeQL Language Coverage check in lfreleng-actions/github-security-report-action#173; same fix as lfreleng-actions/dependamerge#524.
Validation
zizmor --persona auditor, online mode: no findings.prekhook passes, including yamllint and actionlint.language:actionsanalysis, which clears this repository from the report's Language Coverage table.