Skip to content

Pin GitHub Actions to SHA references for supply chain security#122

Merged
FidelusAleksander merged 3 commits into
mainfrom
copilot/update-workflows-sha-references
Dec 11, 2025
Merged

Pin GitHub Actions to SHA references for supply chain security#122
FidelusAleksander merged 3 commits into
mainfrom
copilot/update-workflows-sha-references

Conversation

Copilot AI commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Plan: Update workflows to use SHA references instead of v* tags

  • Update .github/workflows/ci.yml to use SHA references with version comments
  • Update .github/workflows/release-drafter.yml to use SHA references with version comments
  • Update .github/workflows/labeler.yml to use SHA references with version comments
  • Update .github/workflows/test-action.yml to use SHA references with version comments
  • Update .github/workflows/update-major-version.yml to use SHA references with version comments
  • Update .github/dependabot.yml to keep SHA-pinned actions up to date (already configured)
  • Change version comments from major versions (v6) to specific patch versions (v6.0.1)
  • Verify all changes are correct

Summary

Successfully updated all GitHub Actions workflows to use SHA references with specific version comments for improved security and clarity.

Actions Pinned (Updated):

  • actions/checkout@v6.0.1 (SHA: 8e8c483...)
  • actions/setup-node@v6.1.0 (SHA: 395ad32...)
  • actions/upload-artifact@v5.0.0 (SHA: 330a01c...)
  • actions/labeler@v6.0.1 (SHA: 634933e...)
  • release-drafter/release-drafter@v6.1.0 (SHA: b1476f6...)
  • skills/action-keyphrase-checker@v1.1.0 (SHA: 7f46383...)

All version comments now reference specific patch versions (vX.X.X) instead of major versions (vX) for better tracking and clarity.

Original prompt

Update the workflows to use SHA references instead of v* tags

make sure dependabot configuration is setup to respect that

use context7 to search for relevant documentation


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
@FidelusAleksander

Copy link
Copy Markdown
Owner

@copilot lock to specific vX.X.X versions instead of major ones

Copilot AI changed the title [WIP] Update workflows to use SHA references instead of v* tags Pin GitHub Actions to SHA references for supply chain security Dec 11, 2025
…jor versions

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>
@github-actions github-actions Bot added the maintenance Maintenance around the repository label Dec 11, 2025

Copilot AI commented Dec 11, 2025

Copy link
Copy Markdown
Contributor Author

@copilot lock to specific vX.X.X versions instead of major ones

Updated all version comments to use specific patch versions (vX.X.X) instead of major versions. The SHA references remain unchanged as they already point to the specific versions:

  • actions/checkout: v6.0.1
  • actions/setup-node: v6.1.0
  • actions/upload-artifact: v5.0.0
  • actions/labeler: v6.0.1
  • release-drafter/release-drafter: v6.1.0
  • skills/action-keyphrase-checker: v1.1.0

Commit: db8f4bd

@FidelusAleksander FidelusAleksander marked this pull request as ready for review December 11, 2025 08:50
Copilot AI review requested due to automatic review settings December 11, 2025 08:50
@FidelusAleksander FidelusAleksander merged commit 66cfe08 into main Dec 11, 2025
5 checks passed
@FidelusAleksander FidelusAleksander deleted the copilot/update-workflows-sha-references branch December 11, 2025 08:50

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.

Pull request overview

This PR implements a security hardening measure by pinning all GitHub Actions references to specific SHA commits instead of mutable version tags (e.g., v6). This protects against supply chain attacks where action maintainers could potentially update a version tag to point to malicious code. The changes maintain readability by including version comments alongside SHA references.

Key Changes:

  • All GitHub Actions workflow files updated to use SHA-pinned action references
  • Version comments changed from major versions (e.g., v6) to specific patch versions (e.g., v6.0.1)
  • Dependabot configuration already in place to keep SHA-pinned actions updated

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/ci.yml Updated actions/checkout, actions/setup-node, and actions/upload-artifact to use SHA references with v6.0.1, v6.1.0, and v5.0.0 version comments respectively
.github/workflows/release-drafter.yml Updated actions/checkout and release-drafter/release-drafter to use SHA references with v6.0.1 and v6.1.0 version comments
.github/workflows/labeler.yml Updated actions/labeler to use SHA reference with v6.0.1 version comment
.github/workflows/test-action.yml Updated actions/checkout and skills/action-keyphrase-checker to use SHA references with v6.0.1 and v1.1.0 version comments
.github/workflows/update-major-version.yml Updated actions/checkout to use SHA reference with v6.0.1 version comment

⚠️ Critical Issue Identified: The version comments reference versions (v6.x) that may not exist for several GitHub Actions. As of January 2025, these actions were at lower major versions (v4.x-v5.x). Please verify all SHA references correspond to valid, published release tags before merging.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance around the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants