Skip to content

Pin GitHub Actions to commit SHAs and update to latest - #44

Merged
valuecodes merged 1 commit into
mainfrom
feat/pin-cicd-actions
Jul 21, 2026
Merged

Pin GitHub Actions to commit SHAs and update to latest#44
valuecodes merged 1 commit into
mainfrom
feat/pin-cicd-actions

Conversation

@valuecodes

Copy link
Copy Markdown
Owner

What

Supply-chain hardening — pin every third-party GitHub Action to a full commit SHA (mutable tags can be re-pointed by a hijacked action) and update each to its latest release:

  • actions/checkout v5 → v7.0.1 (3d3c42e…) — 15 refs across feature/main/migrations
  • actions/setup-node v6 → v7.0.0 (8207627…)
  • pnpm/action-setup v4 → v6.0.9 (0ebf471…) — also clears the Node 20 deprecation warning (v4 ran on node20)
  • UI-deploy tool: pnpm dlx wrangler@4.66.04.107.0 (aligns with the api/jobs workers)

Each ref carries a # vX.Y.Z comment for readability. The local ./.github/actions/setup composite is unchanged (local path, not a supply-chain surface).

Why safe

No workflow uses pull_request_target/workflow_run, so checkout v7's fork-PR change doesn't apply. setup-node v7 is ESM/dep-only; pnpm v6 still reads packageManager: pnpm@10.28.1. pnpm format:check passes; all pinned SHAs verified to resolve to their tags.

How to test

CI itself is the test: this PR's feature.yml run exercises the pinned checkout + composite (pnpm/setup-node) across typecheck/lint/test/format. Green CI + no Node 20 warning = success. Deploy jobs (incl. wrangler 4.107.0) validate on merge to main.

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings July 21, 2026 19:15

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

Supply-chain hardening for this repo’s GitHub Actions by pinning third-party actions to immutable commit SHAs (with human-readable version comments) and aligning the UI deploy wrangler version with the Workers apps.

Changes:

  • Pin actions/checkout usages in all workflows to a full commit SHA for v7.0.1.
  • Pin the local composite setup action’s dependencies (pnpm/action-setup v6.0.9 and actions/setup-node v7.0.0) to full commit SHAs.
  • Update UI deploy to use pnpm dlx wrangler@4.107.0.

Reviewed changes

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

File Description
.github/workflows/migrations.yml Pins actions/checkout to an immutable SHA for the migrations workflow.
.github/workflows/main.yml Pins actions/checkout across main CI/deploy jobs and updates the UI deploy wrangler version.
.github/workflows/feature.yml Pins actions/checkout across feature-branch CI jobs.
.github/actions/setup/action.yml Pins pnpm/action-setup and actions/setup-node to immutable SHAs in the shared composite setup action.

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

@valuecodes
valuecodes merged commit cf74de5 into main Jul 21, 2026
6 checks passed
@valuecodes
valuecodes deleted the feat/pin-cicd-actions branch July 21, 2026 19:19
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