Harden CI supply chain by pinning GitHub Actions to immutable SHAs - #39
Open
dmvthrowers with Copilot wants to merge 1 commit into
Open
Harden CI supply chain by pinning GitHub Actions to immutable SHAs#39dmvthrowers with Copilot wants to merge 1 commit into
dmvthrowers with Copilot wants to merge 1 commit into
Conversation
Copilot
AI
changed the title
Harden GitHub workflows by pinning Actions to SHAs
Harden CI supply chain by pinning GitHub Actions to immutable SHAs
Jun 7, 2026
Copilot created this pull request from a session on behalf of
dmvthrowers
June 7, 2026 00:52
View session
dmvthrowers
approved these changes
Jun 18, 2026
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s CI/CD supply chain by replacing mutable GitHub Action version tags (e.g., @v4) with immutable commit-SHA pins across multiple GitHub Actions workflows.
Changes:
- Pinned commonly used GitHub Actions (checkout, setup-python, CodeQL, Pages deploy, etc.) to full commit SHAs while preserving the intended version as inline comments.
- Pinned third-party actions (e.g., super-linter) to immutable SHAs to reduce exposure to tag retargeting.
- Standardized the “pinned SHA + semver comment” pattern across the affected workflows.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/codeql1.yml | Pins CodeQL workflow actions (checkout/init/analyze) to immutable SHAs. |
| .github/workflows/dependency-review.yml | Pins checkout and dependency-review-action to immutable SHAs. |
| .github/workflows/greetings.yml | Pins first-interaction action to an immutable SHA. |
| .github/workflows/label.yml | Pins github-script and labeler actions to immutable SHAs. |
| .github/workflows/powershell.yml | Pins checkout and CodeQL SARIF upload action to immutable SHAs. |
| .github/workflows/stale.yml | Pins stale action to an immutable SHA. |
| .github/workflows/static.yml | Pins Pages deploy-related actions to immutable SHAs. |
| .github/workflows/super-linter.yml | Pins checkout and super-linter action to immutable SHAs. |
| .github/workflows/update-meetup.yml | Pins checkout and setup-python to immutable SHAs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
69
to
+73
| # uses: actions/setup-example@v1 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR addresses workflow supply-chain exposure from mutable action tags (
@v*) in repository CI/CD. It replaces tag-based action references with commit-pinned SHAs across core automation workflows.Scope
uses: owner/action@vXtouses: owner/action@<commit-sha>for repository workflows handling code scanning, linting, dependency review, pages deploy, labeling, stale management, greetings, and meetup automation.Workflow updates
codeql1.ymldependency-review.ymlgreetings.ymllabel.ymlpowershell.ymlstale.ymlstatic.ymlsuper-linter.ymlupdate-meetup.ymlImplementation pattern