ci: pin GitHub Actions to SHA hashes of latest release versions#3115
Merged
ci: pin GitHub Actions to SHA hashes of latest release versions#3115
Conversation
Copilot
AI
changed the title
[WIP] Change default behavior of depbot to use SHA versions
ci: pin GitHub Actions to immutable SHA refs
Feb 26, 2026
Copilot
AI
changed the title
ci: pin GitHub Actions to immutable SHA refs
ci: pin GitHub Actions to SHA hashes of latest release versions
Feb 26, 2026
d93f4de to
e8a9a12
Compare
Replace mutable version tags (e.g. @v6) with the commit SHA of the latest release in each major version series, keeping the tag as a trailing comment for readability. This prevents a compromised or moved tag from silently changing what code executes in CI. While at it, replace the unmaintained mosteo-actions/docker-run action with a direct docker run command. Signed-off-by: Daniel Wagner <[email protected]>
e8a9a12 to
fb34708
Compare
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.
Mutable version tags (e.g.
@v6) can be silently redirected to a different commit, creating an undetected supply-chain attack vector. Pin everyuses:reference to the immutable commit SHA of the latest release in its major version series, with the version tag kept as a trailing comment.Changes
build.yml,checkpatch.yml,codeql.yml,coverage.yml,docs.yaml,release.yml,upload.yml,coverity.yml,libnvme-release.yml,libnvme-release-python.yml,run-nightly-tests.yml): replace tag-based action refs with full SHAsactions/upload-artifact: standardised on v6.0.0 across all workflows (coverity was on v5.0.0)SHA → version mapping
actions/checkoutde0fac2eactions/upload-artifactb7c566a7actions/download-artifact37930b1cactions/upload-release-assete8f9f06cdocker/setup-qemu-actionc7c53464docker/login-actionc94ce9fbmosteo-actions/docker-run4824fd41webispy/checkpatch-action58374fe5github/codeql-action89a39a4ecodecov/codecov-action671740acncipollo/release-actionb7eabc95sand4rt/ftp-deployer518beaadpypa/gh-action-pypi-published0c5393The existing
dependabot.ymlalready tracksgithub-actionsand will open PRs to bump these SHAs as new releases are published.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.