Repository navigation
Conversation
👁️ Cyclops Security ReviewNot reviewed yet
React to control the running review: 🚀 one iteration · 👀 two iterations · ❤️ worker 1 only · 😄 worker 2 only · 🎉 finish queued work · 😕 finish now. |
There was a problem hiding this comment.
I reviewed this PR and didn't find any bugs. Because it changes an STS trust policy that issues write-scoped tokens, and the path is covered by CODEOWNERS, a human look would still be worthwhile.
What was reviewed:
- The new
job_workflow_refSHA matches theuses:pin on line 18 of.github/workflows/dependencies.ymlexactly. It is a full 40-hex commit, and the dots in the regex are still escaped. - Nothing else in the claims changed:
subject,repository_id,event_name,workflow_refand thecontents/pull_requests: writepermissions are the same as before. - Not checked: what the reusable workflow in tempoxyz/gh-actions contains at the new commit. That repository isn't available here, so a reviewer should confirm the new commit is trusted.
Extended reasoning...
The change is one line in .github/sts/cargo-update-pr.sts.yaml. It moves the pinned reusable-workflow SHA allowed to receive a token with contents and pull_requests write access. That makes it part of the CI authorization surface: the policy decides which external workflow code can push branches and open PRs. The new SHA matches the caller's pin in dependencies.yml, and no other claim was loosened. I deferred because .github/ is owned by CODEOWNERS and the new upstream commit's contents can't be checked from this checkout.
Match the dependency updater’s exact GitHub STS workflow SHA to the pin from #9682. The repository, workflow, events, and permissions retain their existing constraints.
Verified that the policy now matches the full SHA used by the caller on main.