Skip to content

Pin GitHub Actions to commit SHAs - #163

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

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/annotated-logger to immutable commit SHAs.

Summary

Metric Count
Files changed 4
Files scanned 4
Refs found 16
Refs pinned 16
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/publish-to-pypi.yaml:14 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/publish-to-pypi.yaml:16 actions/setup-python@v7 actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 tag
.github/workflows/publish-to-pypi.yaml:28 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a tag
.github/workflows/publish-to-pypi.yaml:48 actions/download-artifact@v8 actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c tag
.github/workflows/publish-to-pypi.yaml:69 actions/download-artifact@v8 actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c tag
.github/workflows/publish-to-pypi.yaml:113 actions/download-artifact@v8 actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c tag
.github/workflows/pyright.yaml:15 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/pyright.yaml:17 actions/setup-python@v7 actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 tag
.github/workflows/pytest.yaml:21 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/pytest.yaml:23 actions/setup-python@v7 actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 tag
.github/workflows/pytest.yaml:40 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a tag
.github/workflows/pytest.yaml:54 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/pytest.yaml:55 actions/download-artifact@v8 actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c tag
.github/workflows/pytest.yaml:71 actions/upload-artifact@v7 actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a tag
.github/workflows/ruff.yaml:15 actions/checkout@v7 actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 tag
.github/workflows/ruff.yaml:17 actions/setup-python@v7 actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 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 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 immutable, consistently applied, and match the documented release tags.

Pull request overview

Pins GitHub Actions to verified immutable SHAs while retaining version comments for maintainability.

Changes:

  • Pins checkout and Python setup actions.
  • Pins artifact upload and download actions.
  • Applies pinning consistently across all workflows.
File summaries
File Description
.github/workflows/ruff.yaml Pins lint workflow actions.
.github/workflows/pytest.yaml Pins testing and artifact actions.
.github/workflows/pyright.yaml Pins type-checking workflow actions.
.github/workflows/publish-to-pypi.yaml Pins build and publishing workflow actions.
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.

@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

This branch was successfully deployed

1 active deployment
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