Skip to content

Pin all third-party GitHub Actions to immutable commit SHAs - #903

Merged
raphael-theriault-swi merged 1 commit into
mainfrom
copilot/update-workflows-pin-actions
Aug 18, 2026
Merged

Pin all third-party GitHub Actions to immutable commit SHAs#903
raphael-theriault-swi merged 1 commit into
mainfrom
copilot/update-workflows-pin-actions

Conversation

Copilot AI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

This updates all GitHub Actions workflows to replace tag-based third-party uses: references with full commit SHAs. Each pinned action now includes a trailing comment containing only the exact source tag.

  • Scope

    • Updated all workflow files under .github/workflows that reference external actions.
    • Kept local reusable workflow references (./.github/workflows/*.yml) unchanged.
  • Pinning changes

    • Replaced @v* action refs with 40-character commit SHAs for:
      • actions/* (checkout, setup-node, upload-artifact, download-artifact)
      • pnpm/action-setup
      • nrwl/nx-set-shas
      • aws-actions/configure-aws-credentials
      • github/codeql-action (init, analyze)
      • docker/* (setup-qemu-action, setup-buildx-action, login-action, build-push-action)
    • Added trailing YAML comments in the required format: # <tag>.
  • Result

    • Workflows no longer consume mutable tag refs for third-party actions, and each pinned SHA is explicitly mapped to its originating tag inline.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7

Co-authored-by: raphael-theriault-swi <113933910+raphael-theriault-swi@users.noreply.github.com>

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 hardens the repository’s GitHub Actions security posture by replacing mutable tag-based uses: references in workflows with immutable 40-character commit SHAs, while preserving local reusable workflow references.

Changes:

  • Pinned third-party actions in workflow steps from @v* tags to full commit SHAs with a trailing # <tag> comment.
  • Updated Docker, AWS credentials, Nx, and CodeQL action references to SHA-pinned forms.
  • Left local reusable workflow invocations (uses: ./.github/workflows/*.yml) unchanged.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/testing.yml Pins checkout/setup-node/pnpm action refs to commit SHAs.
.github/workflows/scan.yml Pins checkout/setup-node/pnpm action refs to commit SHAs.
.github/workflows/release.yml Pins publish/draft job action refs to commit SHAs; keeps local reusable workflows.
.github/workflows/lambda.yml Pins checkout/setup-node/pnpm + artifact + AWS credentials actions to commit SHAs.
.github/workflows/images.yml Pins Docker-related actions and checkout to commit SHAs.
.github/workflows/codeql.yml Pins checkout/setup-node/pnpm and CodeQL init/analyze actions to commit SHAs.
.github/workflows/checks.yml Pins actions across checks/versions/linux/windows/supports jobs to commit SHAs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@raphael-theriault-swi
raphael-theriault-swi merged commit a90877d into main Aug 18, 2026
83 of 85 checks passed
@raphael-theriault-swi
raphael-theriault-swi deleted the copilot/update-workflows-pin-actions branch August 18, 2026 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants