Skip to content

Commit 5938283

Browse files
XananasX7copybara-github
authored andcommitted
build: pin peter-evans/repository-dispatch to commit SHA (#29554)
Pin `peter-evans/repository-dispatch` to full commit SHA instead of mutable `v4` tag. This workflow has access to `secrets.BAZEL_DOC_TRIGGER_TOKEN` (a fine-grained PAT with write access to bazel-contrib/bazel-docs). Pinning to SHA ensures immutability and prevents supply chain attacks via tag manipulation of the third-party action. Ref: https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions Closes #29554. PiperOrigin-RevId: 918468468 Change-Id: I3dc6a7f78d07b3584908c5f7e6d0e6d4747ce6c5
1 parent 672e9b7 commit 5938283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/trigger-docs-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Trigger build of bazel-docs
16-
uses: peter-evans/repository-dispatch@v4
16+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4
1717
with:
1818
repository: bazel-contrib/bazel-docs
1919
# Fine-grained PAT (https://github.com/settings/personal-access-tokens/new), which needs

0 commit comments

Comments
 (0)