Skip to content

Pin GitHub Actions to commit SHAs - #559

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#559
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/forgoodfirstissue 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/deploy.yml:36 actions/checkout@v3 actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 tag
.github/workflows/deploy.yml:38 actions/setup-node@v3 actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 tag
.github/workflows/deploy.yml:43 actions/configure-pages@v2 actions/configure-pages@c5a3e1159e0cbdf0845eb8811bd39e39fc3099c2 tag
.github/workflows/deploy.yml:51 actions/cache@v3 actions/cache@6f8efc29b200d32929f49075959781ed54ec270c tag
.github/workflows/deploy.yml:76 actions/upload-pages-artifact@v3.0.1 actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa tag
.github/workflows/deploy.yml:90 actions/deploy-pages@v4.0.5 actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e tag
.github/workflows/pr.yml:16 actions/checkout@v3 actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 tag
.github/workflows/pr.yml:18 actions/setup-node@v3 actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 tag
.github/workflows/pr.yml:23 actions/configure-pages@v2 actions/configure-pages@c5a3e1159e0cbdf0845eb8811bd39e39fc3099c2 tag
.github/workflows/pr.yml:31 actions/cache@v3 actions/cache@6f8efc29b200d32929f49075959781ed54ec270c tag
.github/workflows/pr.yml:47 actions/upload-pages-artifact@v3.0.1 actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa 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:26

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

All action references are consistently pinned and the Dependabot configuration supports ongoing maintenance.

Pull request overview

Pins GitHub Actions to immutable SHAs and configures Dependabot to maintain them.

Changes:

  • Pins all workflow action references.
  • Preserves release tags in comments.
  • Adds weekly GitHub Actions updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/pr.yml Pins PR workflow actions.
.github/workflows/deploy.yml Pins deployment workflow actions.
.github/dependabot.yml Enables delayed GitHub Actions updates.
Review details
  • Files reviewed: 3/3 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