Skip to content

ci: pin actions versions with hashes#2744

Open
mdevolde wants to merge 1 commit into
simple-login:masterfrom
mdevolde:ci/pin-actions-versions
Open

ci: pin actions versions with hashes#2744
mdevolde wants to merge 1 commit into
simple-login:masterfrom
mdevolde:ci/pin-actions-versions

Conversation

@mdevolde

@mdevolde mdevolde commented Jun 4, 2026

Copy link
Copy Markdown

ci: pin actions versions with hashes

I have pinned the versions of the actions used in the workflows with hashes.

Pinning GitHub Actions to a commit hash is an effective safeguard against supply chain attacks. By referencing a specific and immutable version of an action, you prevent compromised versions from being automatically integrated into your pipelines.

Concerning actions for which I pinned the version to a more recent one than previously, I checked the breaking changes, and I just had to add method: chat.postMessage for slackapi/slack-github-action.

Here is the link to the tags for the actions I've pinned, if you want to check the hashes:

Pinning versions requires a bit of maintenance, since you have to perform manual upgrades regularly, but in your case, with workflows that handle secrets (such as secrets.GITHUB_TOKEN), it’s a best practice to avoid troubles.

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.

1 participant