Skip to content

VULN-5608 Pin GitHub Actions to commit SHAs - #3134

Open
Jibola wants to merge 2 commits into
masterfrom
vuln-pin-actions-to-sha
Open

Jibola wants to merge 2 commits into
masterfrom
vuln-pin-actions-to-sha

Conversation

@Jibola

@Jibola Jibola commented Nov 23, 2026 •

Copy link
Copy Markdown

Pin mutable GitHub Actions refs to full commit SHAs (Semgrep github-actions-mutable-action-tag). Version kept as a trailing comment.

VULN File Action
VULN-5608 release.yml drivers-github-tools/ruby/build@v3
VULN-5609 rubocop.yml actions/checkout@v2
VULN-5610 rubocop.yml ruby/setup-ruby@v1
VULN-5611 test.yml actions/checkout@v2
VULN-5612 release.yml drivers-github-tools/ruby/publish@v3
VULN-5613 sbom.yml actions/checkout@v4
VULN-5614 sbom.yml ruby/setup-ruby@v1
VULN-5615 test.yml drivers-evergreen-tools@master → v1.4.1
VULN-5616 sbom.yml actions/upload-artifact@v4
  • Tags are pinned to the commit they currently resolve to; no version bumps.
  • VULN-5615 uses the v1.4.1 commit already pinned by the .mod/drivers-evergreen-tools submodule, not master HEAD.
  • Also pins every other mutable ref under .github/ (no ticket), so none remain.

Resolves VULN-5608, VULN-5609, VULN-5610, VULN-5611, VULN-5612, VULN-5613, VULN-5614, VULN-5615, VULN-5616.
@Jibola
Jibola requested a review from a team as a code owner November 23, 2026 19:53
Pins the other mutable refs under .github/ so no tag or branch refs remain. No separate VULN tickets.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The workflow action-pinning changes have no active review issues.

No open issues 🎉

What changed in this PR

Hardens the Ruby driver’s GitHub Actions workflows by replacing mutable action references with full commit SHAs.

Changes:

  • Pins action references across six workflows, retaining version comments.
  • Pins Evergreen tools to the submodule-aligned v1.4.1 commit instead of master.
File Description
.github/​workflows/​test.yml Pins checkout, MongoDB setup, and Ruby setup actions.
.github/​workflows/​sbom.yml Pins checkout, Ruby setup, and artifact upload actions.
.github/​workflows/​rubocop.yml Pins checkout and Ruby setup actions.
.github/​workflows/​release.yml Pins release check, build, and publish actions.
.github/​workflows/​codeql.yml Pins checkout and CodeQL actions.
.github/​workflows/​cleanup.yml Pins the cleanup action.

Review effort: Balanced

This branch has not been deployed

No deployments
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