Skip to content

ci: lock GH actions by digest#266

Open
endersonmaia wants to merge 1 commit intonext/3.0from
ci/lock-actions-by-digest
Open

ci: lock GH actions by digest#266
endersonmaia wants to merge 1 commit intonext/3.0from
ci/lock-actions-by-digest

Conversation

@endersonmaia
Copy link
Copy Markdown
Contributor

@endersonmaia endersonmaia commented May 6, 2026

Summary

  • Pin all GitHub Actions references to immutable commit digests instead of mutable version tags (e.g. @v4@de0fac2e...)
  • Affected files: .github/workflows/build.yml and .github/actions/setup-tools/action.yml
  • Pinned actions: actions/checkout, actions/upload-artifact, actions/download-artifact, docker/setup-qemu-action, actions-rust-lang/setup-rust-toolchain, foundry-rs/foundry-toolchain, extractions/setup-just, pnpm/action-setup, actions/setup-node

Motivation

Mutable version tags (like @v4) can be silently repointed to a different — potentially malicious — commit. Pinning by SHA digest ensures the exact code that was reviewed is what runs, protecting against supply chain attacks on the CI pipeline.

@endersonmaia endersonmaia requested a review from guidanoli May 6, 2026 17:40
@endersonmaia endersonmaia self-assigned this May 6, 2026
@endersonmaia endersonmaia added this to the 3.0.0 milestone May 6, 2026
Copy link
Copy Markdown
Collaborator

@guidanoli guidanoli left a comment

Choose a reason for hiding this comment

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

Looks good, just formatting issues!

Comment thread .github/actions/setup-tools/action.yml Outdated
Comment thread .github/workflows/build.yml Outdated
@endersonmaia endersonmaia force-pushed the ci/lock-actions-by-digest branch from b82df60 to cf8048f Compare May 7, 2026 11:33
Copy link
Copy Markdown
Collaborator

@guidanoli guidanoli left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Enderson! 🙏

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