Skip to content

Pin GitHub Actions to commit SHAs - #60061

Merged
pelikhan merged 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10
Sep 10, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-10

Conversation

@github-security-bot

Copy link
Copy Markdown
Contributor

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

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 3
Refs pinned 3
Skipped refs 0
Warnings 0
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/error-message-lint.yml:23 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/error-message-lint.yml:28 actions/setup-go@v5 actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff tag
.github/workflows/publish-safe-outputs-node.yml:32 actions/checkout@v7.0.0 actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 tag

Dependabot

  • Added a github-actions entry (weekly updates, 7-day cooldown) to the existing Dependabot configuration.
  • The cooldown delays applying a newly published action release for 7 days, reducing exposure to a compromised or broken release while keeping you SHA-pinned.

Generated by pinner 0.1.0.

Copilot AI balanced review requested due to automatic review settings September 10, 2026 22:14

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.

🟡 Changes recommended

The added Dependabot entry makes the YAML invalid due to inconsistent sequence indentation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Pins GitHub Actions dependencies to immutable SHAs and configures automated updates.

Changes:

  • Pins three action references while preserving version comments.
  • Adds weekly Dependabot updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/error-message-lint.yml Pins checkout and Go setup actions.
.github/workflows/publish-safe-outputs-node.yml Pins the checkout action.
.github/dependabot.yml Adds GitHub Actions updates and cooldown.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

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

Comment thread .github/dependabot.yml
Comment on lines +3 to +8
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
@pelikhan
pelikhan merged commit c8d513f into main Sep 10, 2026
11 checks passed
@pelikhan
pelikhan deleted the pinner/actions-sha-pins-2026-09-10 branch September 10, 2026 22:23
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.89.3

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