Repository navigation
ci: pin actions to commit SHAs and declare GITHUB_TOKEN permissions - #26
Merged
Merged
Conversation
The superwall org is turning on "require actions to be pinned to a full-length commit SHA" and a read-only default GITHUB_TOKEN. - Pin every non-local `uses:` (actions, reusable workflows, composite action internals) to the commit its current tag or branch resolves to, keeping the version as a trailing comment. No version changes. - Add explicit `permissions:` to workflows that relied on the org's read/write default, granting only the scopes each job uses today. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This comment has been minimized.
This comment has been minimized.
anglinb
force-pushed
the
ci/pin-actions-token-permissions
branch
from
November 12, 2026 06:41
215497d to
dd271ac
Compare
Maple review🟢 Confidence 10/10 · safe to merge. The workflow-only changes are unchanged since the prior review, with no open findings and no production behavior added. Pins external GitHub Actions to commit SHAs and declares read-only token permissions, with check-writing access for Unity tests. No new defects found in the unchanged revision.
|
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.
The superwall org is about to turn on two Actions policies: require actions to be pinned to a full-length commit SHA and read-only default
GITHUB_TOKENpermissions. Either policy breaks workflows that aren't ready, so this PR gets this repo ready first.What changed
uses:(actions, reusable workflows, composite-action internals) is pinned to the commit SHA its current tag or branch resolves to, with the version kept as a trailing comment (uses: actions/checkout@<sha> # v4). No versions were changed; annotated tags were dereferenced to their commit.permissions:explicitly, with the minimum each job uses today (contents: readunless a job pushes, comments, creates deployments, etc.).Permission grants I was unsure about
unity.ymltestjob: grantedchecks: writebecausegame-ci/unity-test-runneris givengithubTokento publish a test-results check.🤖 Generated with Claude Code