Skip to content

Conversation

@zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Sep 16, 2025

Pinning hashes for dependencies in workflows is a security best practice

Excluded from pinning are actions from the github/* and actions/* given that these are officially managed by Github and are not raised by zizmor

By configuring dependabot with package-ecosystem: "github-actions" it will open a pull request only for updating pinned hashes (not cargo, etc..): https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot#enabling-dependabot-version-updates-for-actions

The <hash> #<branch_name> syntax is what dependabot picks up on

@zerosnacks zerosnacks marked this pull request as ready for review September 16, 2025 09:49
Copy link
Contributor

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zerosnacks zerosnacks merged commit a514af2 into main Sep 16, 2025
11 checks passed
@zerosnacks zerosnacks deleted the zerosnacks/pin-deps-in-workflow branch September 16, 2025 10:39
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.

3 participants