Skip to content

Conversation

@Fdawgs
Copy link
Contributor

@Fdawgs Fdawgs commented Mar 25, 2025

Follow the recent compromise of tj-actions/changed-files, this PR pins GitHub actions to specific commit hashes to ensure a known version of each action is used, mitigating the risk of a supply chain attack through malicious updates.

See related blog post by rafaelgss about pinning to the commit-hash.

At the same time, i've also set check-latest to true, so that the actions/setup-node will check it is using the latest minor or hotfix Node version and use that instead of its cached version, this stops an issue like with 22.5.0 that introduced a regression and actions were still using that instead of 22.5.1.

@spencermountain
Copy link
Owner

oof! Ok cool, thank you.

@spencermountain spencermountain merged commit 1c736fd into spencermountain:master Mar 25, 2025
6 checks passed
@Fdawgs Fdawgs deleted the ci/pin branch March 25, 2025 13:29
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