Skip to content

ci: pin all actions to full commit SHAs and add workflow permissions#641

Open
XananasX7 wants to merge 1 commit into
google:mainfrom
XananasX7:ci/pin-actions
Open

ci: pin all actions to full commit SHAs and add workflow permissions#641
XananasX7 wants to merge 1 commit into
google:mainfrom
XananasX7:ci/pin-actions

Conversation

@XananasX7

Copy link
Copy Markdown

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 missing permissions block to release-bazel.yml.

Changes

Pin all uses: to full commit SHAs (original tags kept as comments)

Action Was Now
actions/checkout @v4.2.2 / @v4.1.7 @11bd71901b / @692973e3d9
actions/setup-python @v5.6.0 @a26af69be9
actions/upload-pages-artifact @v3.0.1 @56afc609e7
actions/upload-artifact @v4.6.2 @ea165f8d65
actions/download-artifact @v4.3.0 @d3f86a106a
actions/deploy-pages @v4.0.5 @d6db90164a
bazel-contrib/setup-bazel @0.15.0 @8d2cb86a36
bazel-contrib/publish-to-bcr @v0.2.2 @096e4724c7
sigstore/gh-action-sigstore-python @v3.0.1 @f7ad0af51a
pypa/gh-action-pypi-publish @v1.13.0 @106e0b0b7c

Add permissions: contents: read to release-bazel.yml

This was the only workflow missing a top-level permissions block. The job-level permissions for the release job are already correctly scoped (contents: write, id-token: write, attestations: write) and are unchanged — the workflow-level contents: read sets 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.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant