Skip to content

Pin GitHub Actions to commit SHAs - #2

Merged
Divhanthelion merged 2 commits into
mainfrom
security/pin-actions
Oct 3, 2026
Merged

Divhanthelion merged 2 commits into
mainfrom
security/pin-actions

Conversation

@Divhanthelion

@Divhanthelion Divhanthelion commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

Pins every uses: in the workflows to a full commit SHA, keeping the version as a comment (actions/checkout@<sha> # v4). A tag or branch can be repointed by whoever controls the action (as in the tj-actions/changed-files compromise); a SHA cannot.

dtolnay/rust-toolchain picks the Rust toolchain from the ref name, so pinned steps now pass toolchain: explicitly.

Found by a ghaudit sweep (gha/unpinned-action). Checked: every workflow still parses and every rust-toolchain step has a toolchain input.
Retargeted from claude/youthful-pasteur-oguvf3 to main. That branch is the repository's default and was one commit ahead of main, so this PR also brings main up to date with it ("Explain the \t escape where lesson 1 first uses it").

🤖 Generated with Claude Code

claude and others added 2 commits October 2, 2026 17:46
The Display/Debug demo printed a tab before escapes were introduced,
which read as a mismatch between the source and the output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UkYbwHpY9bywefAyqBSch7
A tag or branch can be moved to new code by whoever controls the action;
a commit SHA cannot. The version stays in a comment. dtolnay/rust-toolchain
selects the toolchain from its ref, so pinned steps pass it as input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Divhanthelion
Divhanthelion changed the base branch from claude/youthful-pasteur-oguvf3 to main October 3, 2026 01:29
@Divhanthelion
Divhanthelion merged commit 2fde14c into main Oct 3, 2026
12 of 14 checks passed
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.

2 participants