Skip to content

ci: lock GH actions by digest#266

Merged
guidanoli merged 1 commit into
next/3.0from
ci/lock-actions-by-digest
Jun 19, 2026
Merged

ci: lock GH actions by digest#266
guidanoli merged 1 commit into
next/3.0from
ci/lock-actions-by-digest

Conversation

@endersonmaia

@endersonmaia endersonmaia commented May 6, 2026

Copy link
Copy Markdown
Contributor

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

@guidanoli guidanoli left a comment

Copy link
Copy Markdown
Collaborator

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

@guidanoli guidanoli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks Enderson! 🙏

@guidanoli guidanoli merged commit fec056e into next/3.0 Jun 19, 2026
8 checks passed
@guidanoli guidanoli deleted the ci/lock-actions-by-digest branch June 19, 2026 19:37
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