Skip to content

Commit 57be53f

Browse files
chore(ci): pin agentrust-io/.github checkout to an immutable SHA (#68)
The contributor-check workflow runs on pull_request_target holding issues: write and pull-requests: write, and checked out agentrust-io/.github at `ref: main`. Anyone able to land a commit on that repo's main therefore got a write-capable token in this repo. The org action's own template comment says the ref must not be mutable. Pinned to 0fe4520 (main as of 2026-08-01), which also carries the AGT bump to 359a6b8 and its fail-closed UNKNOWN risk ordering, so errored or rate-limited checks stop being scored as clean.
1 parent 8723146 commit 57be53f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/contributor-check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ jobs:
3030
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3131
with:
3232
repository: agentrust-io/.github
33-
ref: main
33+
# Pinned deliberately: this workflow runs on pull_request_target
34+
# with a write-capable token, so the code it checks out must not
35+
# track a mutable ref. Bump this SHA after reviewing the diff.
36+
ref: 0fe4520ee71a743fcd33f409fe366ee3e1da6f86 # main as of 2026-08-01
3437
persist-credentials: false
3538
sparse-checkout: |
3639
scripts

0 commit comments

Comments
 (0)