Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Pin GitHub Actions to commit SHAs - #23

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

github-security-bot wants to merge 1 commit into
masterfrom
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/node-keytar to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 2
Refs found 11
Refs pinned 11
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/ci.yml:28 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:30 actions/setup-node@v4 actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 tag
.github/workflows/ci.yml:107 actions/upload-artifact@v4 actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 tag
.github/workflows/ci.yml:116 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:147 actions/upload-artifact@v4 actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 tag
.github/workflows/ci.yml:160 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/ci.yml:162 actions/setup-node@v4 actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 tag
.github/workflows/ci.yml:178 actions/download-artifact@v4 actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 tag
.github/workflows/codeql.yml:29 actions/checkout@v4 actions/checkout@11d5960a326750d5838078e36cf38b85af677262 tag
.github/workflows/codeql.yml:33 github/codeql-action/init@v3 github/codeql-action/init@faaca9a8f6edddba5725ffe5adefdab6669a2eca tag
.github/workflows/codeql.yml:51 github/codeql-action/analyze@v3 github/codeql-action/analyze@faaca9a8f6edddba5725ffe5adefdab6669a2eca 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 21:29
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:29

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.

🟡 Changes recommended

Inconsistent list indentation makes the Dependabot YAML invalid.

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

Pull request overview

Pins GitHub Actions to immutable SHAs and enables automated action updates.

Changes:

  • Pins 11 workflow action references.
  • Adds weekly Dependabot updates with a cooldown.
File summaries
File Description
.github/workflows/ci.yml Pins CI actions.
.github/workflows/codeql.yml Pins CodeQL actions.
.github/dependabot.yml Adds GitHub Actions updates.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

đź’ˇ Add a code-review agent skill or configure MCP servers 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants