Skip to content

Pin GitHub Actions to commit SHAs - #356

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#356
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/gh-actions-importer to immutable commit SHAs.

Summary

Metric Count
Files changed 2
Files scanned 1
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:21 actions/checkout@v3 actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 tag
.github/workflows/ci.yml:22 actions/setup-dotnet@v3 actions/setup-dotnet@55ec9447dda3d1cf6bd587150f3262f30ee10815 tag
.github/workflows/ci.yml:37 actions/checkout@v3 actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 tag
.github/workflows/ci.yml:38 actions/setup-dotnet@v2 actions/setup-dotnet@8e6bd2905eef86446227f003dda1deb3916c4aaf tag
.github/workflows/ci.yml:48 EnricoMi/publish-unit-test-result-action@v2 EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 tag
.github/workflows/ci.yml:57 actions/checkout@v3 actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 tag
.github/workflows/ci.yml:58 actions/setup-dotnet@v3 actions/setup-dotnet@55ec9447dda3d1cf6bd587150f3262f30ee10815 tag
.github/workflows/ci.yml:85 actions/upload-artifact@v4 actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 tag
.github/workflows/ci.yml:98 actions/checkout@v2 actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e tag
.github/workflows/ci.yml:114 actions/download-artifact@v4 actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 tag
.github/workflows/ci.yml:119 softprops/action-gh-release@v1 softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 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
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:26
@github-actions

Copy link
Copy Markdown

Unit Test Results

42 tests   42 ✅  0s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit af2e0ad.

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 action SHAs match their documented tags, and the Dependabot configuration is valid.

Pull request overview

Pins workflow actions to immutable SHAs and configures automated updates.

Changes:

  • Pins all 11 action references while preserving version comments.
  • Adds weekly Dependabot updates with a seven-day cooldown.
File summaries
File Description
.github/workflows/ci.yml Pins action dependencies to verified tag commits.
.github/dependabot.yml Adds GitHub Actions dependency updates.
Review details
  • Files reviewed: 2/2 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