Skip to content

Pin GitHub Actions to commit SHAs - #472

Open
github-security-bot wants to merge 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10
Open

Pin GitHub Actions to commit SHAs#472
github-security-bot wants to merge 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10

Conversation

@github-security-bot

@github-security-bot github-security-bot commented Sep 10, 2026

Copy link
Copy Markdown

Pins GitHub Actions uses: references in github/rubocop-github to immutable commit SHAs.

Summary

Metric Count
Files changed 4
Files scanned 4
Refs found 4
Refs pinned 4
Skipped refs 0
Warnings 1
Errors 0

Why

Pinning actions to full commit SHAs prevents future tag or branch retargeting from changing workflow behavior without review.

Reviewer notes

  • Original refs are preserved in inline comments when possible.
  • Pin comments use the Dependabot-compatible original-ref style.
  • Branch refs were allowed and pinned to their current HEAD; review mutable-branch pins carefully.
  • No minimum action age was enforced for this run.

Pinned refs

Location Before After Resolved as
.github/workflows/build.yml:26 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/lint.yml:19 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/release.yml:23 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/test.yml:21 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag

Warnings

Location Ref Reason
.github/dependabot.yml `` .github/dependabot.yml left unchanged: github-actions ecosystem present in an unrecognized or complex form

Generated by pinner 0.1.0.

Copilot AI balanced review requested due to automatic review settings September 10, 2026 21:31
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

All references use the valid commit for actions/checkout@v7.0.1 without altering workflow behavior.

Pull request overview

Pins checkout steps to the immutable commit corresponding to actions/checkout@v7.0.1.

Changes:

  • Replaces four mutable @v7 references with a verified full commit SHA.
  • Preserves the release version in Dependabot-compatible comments.
File summaries
File Description
.github/workflows/build.yml Pins checkout in the build workflow.
.github/workflows/lint.yml Pins checkout in the lint workflow.
.github/workflows/release.yml Pins checkout in the release workflow.
.github/workflows/test.yml Pins checkout in the test workflow.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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