Skip to content

[CI] Pin remaining actions to sha#309

Merged
sebbASF merged 1 commit into
apache:masterfrom
jbampton:pin-github-actions
Jun 8, 2026
Merged

[CI] Pin remaining actions to sha#309
sebbASF merged 1 commit into
apache:masterfrom
jbampton:pin-github-actions

Conversation

@jbampton

@jbampton jbampton commented Jun 8, 2026

Copy link
Copy Markdown
Member

We already pin here:

https://github.com/apache/whimsy/blob/master/.github/workflows/pre-commit.yml

ruby/setup-ruby@afeafc3

actions/setup-node@48b55a0

actions/checkout@df4cb1c


Using mutable tags like @v4 leaves your pipelines vulnerable to supply chain attacks if a developer's account is compromised. Pinning to a unique 40-character commit SHA ensures you run immutable, unalterable code that cannot be silently modified by bad actors. This practice guarantees absolute build reproducibility because cryptographic hashes cannot be force-pushed or rewritten. It also protects your workflows from risks like repository deletion or malicious name squatting. For maximum safety, pairs SHAs with inline comments so dependency tools can still automate your version updates.

@sebbASF sebbASF merged commit bc5a265 into apache:master Jun 8, 2026
1 check passed
@sebbASF

sebbASF commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@jbampton jbampton deleted the pin-github-actions branch June 8, 2026 17:10
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