Pin GitHub Actions to full-length commit SHAs#47
Merged
data-douser merged 4 commits intomainfrom Apr 23, 2026
Merged
Conversation
7 tasks
…ctions Agent-Logs-Url: https://github.com/advanced-security/codeql-development-template/sessions/2b09ef7b-423b-462a-93f1-8107507d935f Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Agent-Logs-Url: https://github.com/advanced-security/codeql-development-template/sessions/2b09ef7b-423b-462a-93f1-8107507d935f Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Pin GitHub Actions to full-length commit SHAs and apply hardening
Pin GitHub Actions to full-length commit SHAs
Apr 22, 2026
19 tasks
Upgrades the codeql CLI version from 2.23.5 to 2.25.2 in an attempt to resolve unit testing failures for bundled CodeQL queries.
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.
External GitHub Actions in
.github/workflows/and.github/actions/were referenced by mutable tags (@v6,@main, etc.), leaving CI exposed to upstream tag-rewriting attacks.Changes
# tagtrailing comments):copilot-setup-steps.yml—actions/checkoutlint-and-format.yml—actions/checkout,actions/setup-nodecodeql-qlt-unit-tests.yml—actions/checkout×3,actions/upload-artifact,actions/download-artifactsetup-codeql-environment/action.yml: pinnedactions/cache×4,actions/setup-node,actions/setup-python×2,actions/setup-java×2,actions/setup-go×2,actions/setup-dotnet,ruby/setup-ruby×2, andadvanced-security/codeql-development-toolkit/.github/actions/install-qlt(was floating on@main)..github/instructions/github_workflows_yaml.instructions.md(applyTo: .github/{actions,workflows}/**/*.{yml,yaml}) codifying SHA-pinning, least-privilegepermissions, and lint/format expectations — mirroring the pattern fromcodeql-development-mcp-server.Format used throughout:
Not changed (already satisfies acceptance criteria)
permissions: contents: read..github/dependabot.yamlalready enables weeklygithub-actionsupdates, which will keep the SHAs current.Notes for reviewers
install-qltis pinned to a recentmainSHA with# mainas the comment, since the upstream action publishes no semver tag. Bumping cadence will be driven by Dependabot.