Skip to content

ci: pin github actions hashes - #12

Merged
mbaraniak-exodus merged 1 commit into
masterfrom
mbaraniak/github-action-pinning
May 1, 2026
Merged

mbaraniak-exodus merged 1 commit into
masterfrom
mbaraniak/github-action-pinning

Conversation

@mbaraniak-exodus

Copy link
Copy Markdown
Contributor

📝 Summary

This PR pins third-party GitHub Actions to full commit SHAs.
Internal ExodusMovement/... actions are out of scope for this campaign and are intentionally not locked in these changes.
This removes floating action references and reduces supply-chain risk by ensuring workflow execution uses reviewed, immutable upstream revisions instead of tags that can be moved.

Copilot AI left a comment

Copy link
Copy Markdown

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 aims to reduce GitHub Actions supply-chain risk by pinning third-party action references to immutable commit SHAs (while leaving internal ExodusMovement/... actions unpinned as noted in the description).

Changes:

  • Pinned actions/checkout and actions/setup-node to full commit SHAs in the Node CI workflow.
  • Pinned actions/checkout to a full commit SHA in the CodeQL workflow.

Reviewed changes

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

File Description
.github/workflows/node.js.yml Pins actions/checkout and actions/setup-node to commit SHAs for deterministic CI execution.
.github/workflows/codeql-analysis.yml Pins actions/checkout to a commit SHA for deterministic CodeQL workflow execution.

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

Comment on lines 15 to +18
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
Comment on lines 37 to 40
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1

@ale-exo ale-exo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

  • https://github.com/actions/checkout/releases/tag/v4.3.1
  • https://github.com/actions/checkout/releases/tag/v2.7.0
  • https://github.com/actions/setup-node/releases/tag/v1.4.6

@mbaraniak-exodus
mbaraniak-exodus merged commit 9b04f1d into master May 1, 2026
7 checks passed
@mbaraniak-exodus
mbaraniak-exodus deleted the mbaraniak/github-action-pinning branch May 1, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants