Skip to content

Pin GitHub Actions to commit SHAs - #201

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

Pin GitHub Actions to commit SHAs#201
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/glb-director to immutable commit SHAs.

Summary

Metric Count
Files changed 3
Files scanned 3
Refs found 11
Refs pinned 11
Skipped refs 0
Warnings 1
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:16 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/ci.yml:22 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a tag
.github/workflows/codeql-analysis.yml:30 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/codeql-analysis.yml:34 github/codeql-action/init@v4.37.4 github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 tag
.github/workflows/codeql-analysis.yml:47 github/codeql-action/autobuild@v4.37.4 github/codeql-action/autobuild@f205ea1c3313d32999d8d6a48b4f6530d4437b38 tag
.github/workflows/codeql-analysis.yml:50 github/codeql-action/analyze@v4.37.4 github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 tag
.github/workflows/test.yml:26 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/test.yml:29 docker/setup-buildx-action@v4 docker/setup-buildx-action@37fe631027851001ddb9b187196cc803df7f5f0e tag
.github/workflows/test.yml:37 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a tag
.github/workflows/test.yml:62 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/test.yml:65 actions/download-artifact@v8 actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c tag

Warnings

Location Ref Reason
.github/dependabot.yml `` .github/dependabot.yml left unchanged: github-actions ecosystem present in an unrecognized or complex form

Generated by pinner 0.1.0.

Copilot AI balanced review requested due to automatic review settings 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 use full SHAs matching their annotated release tags.

Pull request overview

Pins all workflow actions to verified immutable commit SHAs while preserving version comments.

Changes:

  • Pins 11 action references across three workflows.
  • Retains Dependabot-compatible version annotations.
  • Covers CI, testing, artifact handling, and CodeQL scanning.
File summaries
File Description
.github/workflows/ci.yml Pins checkout and artifact upload actions.
.github/workflows/codeql-analysis.yml Pins checkout and CodeQL actions.
.github/workflows/test.yml Pins build, checkout, and artifact actions.
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