ci: pin all actions to full commit SHAs and add workflow permissions#641
Open
XananasX7 wants to merge 1 commit into
Open
ci: pin all actions to full commit SHAs and add workflow permissions#641XananasX7 wants to merge 1 commit into
XananasX7 wants to merge 1 commit into
Conversation
Pin every mutable tag reference across all 7 workflow files to its full
commit SHA (original tag kept as comment). Also add a top-level
`permissions: contents: read` to release-bazel.yml which was the only
workflow missing one (the others already had permissions blocks).
Actions pinned:
actions/checkout:
@v4.2.2 -> @11bd71901bbe5b1630ceea73d27597364c9af683
@v4.1.7 -> @692973e3d937129bcbf40652eb9f2f61becf3332
actions/setup-python:
@v5.6.0 -> @a26af69be951a213d495a4c3e4e4022e16d87065
actions/upload-pages-artifact:
@v3.0.1 -> @56afc609e74202658d3ffba0e8f6dda462b719fa
actions/upload-artifact:
@v4.6.2 -> @ea165f8d65b6e75b540449e92b4886f43607fa02
actions/download-artifact:
@v4.3.0 -> @d3f86a106a0bac45b974a628896c90dbdf5c8093
actions/deploy-pages:
@v4.0.5 -> @d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e
bazel-contrib/setup-bazel:
@0.15.0 -> @8d2cb86a3680a820c3e219597279ce3f80d17a47
bazel-contrib/publish-to-bcr:
@v0.2.2 -> @096e4724c760aa0024916fe772701c06926f4c49
sigstore/gh-action-sigstore-python:
@v3.0.1 -> @f7ad0af51a5648d09a20d00370f0a91c3bdf8f84
pypa/gh-action-pypi-publish:
@v1.13.0 -> @106e0b0b7c337fa67ed433972f777c6357f78598
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
All 7 CI workflow files used mutable action tag references. This PR pins every
uses:to its full commit SHA across the entire.github/workflows/directory, and adds a missingpermissionsblock torelease-bazel.yml.Changes
Pin all
uses:to full commit SHAs (original tags kept as comments)actions/checkout@v4.2.2/@v4.1.7@11bd71901b/@692973e3d9actions/setup-python@v5.6.0@a26af69be9actions/upload-pages-artifact@v3.0.1@56afc609e7actions/upload-artifact@v4.6.2@ea165f8d65actions/download-artifact@v4.3.0@d3f86a106aactions/deploy-pages@v4.0.5@d6db90164abazel-contrib/setup-bazel@0.15.0@8d2cb86a36bazel-contrib/publish-to-bcr@v0.2.2@096e4724c7sigstore/gh-action-sigstore-python@v3.0.1@f7ad0af51apypa/gh-action-pypi-publish@v1.13.0@106e0b0b7cAdd
permissions: contents: readtorelease-bazel.ymlThis was the only workflow missing a top-level permissions block. The job-level
permissionsfor the release job are already correctly scoped (contents: write,id-token: write,attestations: write) and are unchanged — the workflow-levelcontents: readsets a safe default for any future jobs added to the file.Qualifies under the Google Open Source Patch Rewards Program for proactive CI/supply-chain security hardening.