Skip to content

Pin GitHub Actions to commit SHAs - #2712

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

github-security-bot wants to merge 1 commit into
mainfrom
pinner/actions-sha-pins-2026-09-17

Conversation

@github-security-bot

Copy link
Copy Markdown
Contributor

Pins GitHub Actions uses: references in github/copilot-sdk to immutable commit SHAs.

Summary

Metric Count
Files changed 1
Files scanned 1
Refs found 2
Refs pinned 2
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/publish.yml:420 actions/setup-dotnet@v5 actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 tag
.github/workflows/publish.yml:424 actions/download-artifact@v8.0.0 actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 tag

Generated by pinner 0.1.0.

@github-security-bot
github-security-bot requested a review from a team as a code owner September 17, 2026 19:12
Copilot AI balanced review requested due to automatic review settings September 17, 2026 19:12

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

The pinned SHAs match their documented versions and preserve existing workflow behavior.

Pull request overview

Pins two GitHub Actions dependencies to immutable commit SHAs, improving workflow supply-chain security without changing behavior.

Changes:

  • Pins actions/setup-dotnet and actions/download-artifact.
  • Preserves version tags in Dependabot-compatible comments.
File summaries
File Description
.github/workflows/publish.yml Replaces two action tags with immutable SHAs.
Review details
  • Files reviewed: 1/1 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