Skip to content

ci(github-actions): pin public actions to commit SHAs - #23340

Merged
acavalloni merged 1 commit into
masterfrom
ci/pin-github-actions-versions
Oct 30, 2026
Merged

acavalloni merged 1 commit into
masterfrom
ci/pin-github-actions-versions

Conversation

@hbelkhir

Copy link
Copy Markdown
Contributor

Pin every public action used in .github/workflows to a full commit SHA, with the release in a trailing comment. The major version in use is kept, only the latest patch of that major is picked. mschilde/auto-label-merge-conflicts and Simek/yarn-lock-changes tracked a moving branch (master/main) and are now pinned to their latest release (v2.0 and v0.14.1).

Description

Ticket Reference: #...

Additional Information

Copilot AI balanced review requested due to automatic review settings October 30, 2026 11:21
@hbelkhir
hbelkhir requested a review from a team as a code owner October 30, 2026 11:21
@hbelkhir
hbelkhir requested a review from anooparveti October 30, 2026 11:21

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.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

No open issues 🎉

What changed in this PR

Pins third-party GitHub Actions in workflows to specific commit SHAs to improve supply-chain security and build reproducibility.

Changes:

  • Replaced version tags (e.g., @v4) with full commit SHAs across multiple workflows.
  • Added inline comments indicating the intended action version corresponding to each pinned SHA.
File Description
.github/​workflows/​run-bdd-tests.yml Pins checkout, setup-node, cache, nx-set-shas, and free-disk-space actions to SHAs for deterministic BDD runs.
.github/​workflows/​release-branch-checker.yaml Pins actions/github-script to a SHA for consistent branch check behavior.
.github/​workflows/​pr-triage.yml Pins actions/stale to a SHA for stable PR triage automation.
.github/​workflows/​pr-inspector.yml Pins multiple PR inspection/labeling actions to SHAs to reduce supply-chain risk.
.github/​workflows/​pnpm-migration.yml Pins checkout and setup-node actions to SHAs for reproducible migration runs.
.github/​workflows/​linter.yaml Pins common CI actions to SHAs to keep lint workflow deterministic.
.github/​workflows/​gh-pages.yaml Pins build and deploy actions to SHAs for consistent Pages deployments.
.github/​workflows/​commitlint.yaml Pins checkout and commitlint action to SHAs for stable commit message checks.
.github/​workflows/​check-translations.yml Pins actions/github-script to a SHA for consistent translation label checks.
.github/​workflows/​check-duplicates-translations.yml Pins common CI actions (checkout/setup-node/cache/nx-set-shas) to SHAs for deterministic checks.
.github/​workflows/​auto-pr-release.yaml Pins checkout and PR sync action to SHAs for reproducible automated PR releases.

Review effort: Lite

Signed-off-by: Hazem Belkhiria <hazem.belkhiria.ext@ovhcloud.com>
@hbelkhir
hbelkhir force-pushed the ci/pin-github-actions-versions branch from 1ed9871 to a273425 Compare October 30, 2026 13:08
Copilot AI balanced review requested due to automatic review settings October 30, 2026 13:08
@github-actions github-actions Bot added the continuous-integration Changes to our CI configuration files and scripts label Oct 30, 2026

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.

Comment on lines 15 to +18
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: pull-request
uses: repo-sync/pull-request@v2
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5 # v2.12.1
# ------------------------------------------
- name: Restore pnpm binary
uses: actions/cache@v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
# ------------------------------------------
- name: Restore Yarn cache
uses: actions/cache@v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
# ------------------------------------------
- name: Restore Nx cache
uses: actions/cache@v4
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
@acavalloni
acavalloni merged commit 5e22efb into master Oct 30, 2026
8 of 12 checks passed
@acavalloni
acavalloni deleted the ci/pin-github-actions-versions branch October 30, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

continuous-integration Changes to our CI configuration files and scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants