Skip to content

Pin GitHub Actions to commit SHAs - #152

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

Pin GitHub Actions to commit SHAs#152
manuelpuyol merged 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
Contributor

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

Summary

Metric Count
Files changed 4
Files scanned 3
Refs found 8
Refs pinned 8
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/nodejs.yml:11 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/nodejs.yml:12 actions/setup-node@v6 actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 tag
.github/workflows/publish-pages.yml:15 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/publish-pages.yml:17 actions/setup-node@v6 actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 tag
.github/workflows/publish-pages.yml:32 actions/upload-pages-artifact@v4 actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b tag
.github/workflows/publish-pages.yml:50 actions/deploy-pages@v4 actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e tag
.github/workflows/publish.yml:15 actions/checkout@v6 actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 tag
.github/workflows/publish.yml:16 actions/setup-node@v6 actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 tag

Dependabot

  • Added .github/dependabot.yml enabling weekly github-actions updates with a 7-day cooldown (cooldown: default-days: 7).
  • 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:28
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:28

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 SHA-pinned and the Dependabot configuration matches the stated update policy.

Pull request overview

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

Changes:

  • Pins eight action references across three workflows.
  • Adds weekly Dependabot updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/nodejs.yml Pins CI actions.
.github/workflows/publish.yml Pins publishing actions.
.github/workflows/publish-pages.yml Pins Pages build and deployment actions.
.github/dependabot.yml Configures action dependency updates.
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.

@manuelpuyol
manuelpuyol merged commit d551ffb into main Sep 10, 2026
7 checks passed
@manuelpuyol
manuelpuyol deleted the pinner/actions-sha-pins-2026-09-10 branch September 10, 2026 21:36
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