Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deprecate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
VERSIONS: ${{ inputs.versions }}
MESSAGE: ${{ inputs.message }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
contents: read
id-token: write # provenance attestation; not used for auth
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0 # the pinned-commit check below needs ACTION_SHA's commit and its ACTION_VERSION tag

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/self-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# Required so the local `uses: ./` action definition is present in the
# workspace. On pull_request, the default checkout is the PR merge ref, so
# `./` resolves to the action code being changed by the PR.
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: ./
with:
orcarouter-api-key: ${{ secrets.ORCAROUTER_API_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
matrix:
node-version: ["20", "24"]
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ matrix.node-version }}

Expand Down
18 changes: 9 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ runs:
# retarget re-reviews against the new base; a title edit does not).
- name: Resolve PR refs
id: pr
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟠 P1 Verify the bumped action pins are real release commits before relying on them

The change replaces the three verified pins (commit 93a84b8 established github-script f28e40c7 (v7.1.0), setup-node 49933ea5 (v4.4.0), checkout 11d5960a (v4.4.0) as "the commit its current major tag points at") with SHAs claimed to be actions/checkout v7.0.1 (3d3c42e5), actions/setup-node v7.1.0 (949feb24), and actions/github-script v9.0.0 (3a2844b7). These are single-PR, multi-major jumps (v4→v7, v4→v7, v7→v9) to versions that do not exist in the real release histories of those actions, and nothing in the repository or in this change verifies that the pinned SHAs are the commits those tags point at (the old pinning commit 93a84b8 explicitly verified its choices; this one asserts three invented majors). If the SHAs are not resolvable release commits, GitHub fails every uses: with "Unable to resolve action": the repo's own CI (test.yml, self-review.yml, publish.yml, deprecate.yml) and — worse — every customer workflow that runs this composite action error at the resolve step before any step runs, so the review that customers are paying for never happens at all. The existing equivalent (the previous pins) resolved and ran; the new pins, if fabricated, do not. Fix: pin each action to a commit actually tagged vX.Y.Z in the upstream repo (and keep the comment in sync), or revert to the previous verified pins.

env:
IDENTITY: ${{ github.action_path }}/scripts/identity.mjs
BRAND: ${{ inputs.brand }}
Expand Down Expand Up @@ -603,7 +603,7 @@ runs:

# setup-node runs BEFORE checkout (it never reads the workspace) so the
# settings fetch below has node available even on a bare self-hosted runner.
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
if: steps.pr.outputs.run == 'true'
with:
node-version: "20"
Expand Down Expand Up @@ -864,7 +864,7 @@ runs:
# a merge for a customer who requires it. "fail" fails the job too.
- name: Skip review (settings)
if: steps.settings.outputs.decision == 'skip'
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
# Only comments this identity wrote count as the action's own (markers).
BOT_LOGIN: ${{ steps.pr.outputs.bot_login }}
Expand Down Expand Up @@ -946,7 +946,7 @@ runs:
);
}

- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: steps.settings.outputs.decision == 'review'
with:
fetch-depth: 0 # full history for the merge-base diff
Expand Down Expand Up @@ -1042,7 +1042,7 @@ runs:
# "pass" restores the advisory behavior (notice + green check).
- name: Skip review (diff too large)
if: steps.guard.outputs.decision == 'skip'
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
# Only comments this identity wrote count as the action's own (markers).
BOT_LOGIN: ${{ steps.pr.outputs.bot_login }}
Expand Down Expand Up @@ -1671,7 +1671,7 @@ runs:
# skipped run (the review step's own cleanup never ran on a skip).
- name: Surface guardrail / firewall block
if: always() && steps.settings.outputs.decision == 'review' && steps.guard.outputs.decision == 'review'
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
# Only comments this identity wrote count as the action's own (markers).
BOT_LOGIN: ${{ steps.pr.outputs.bot_login }}
Expand Down Expand Up @@ -1825,7 +1825,7 @@ runs:

- name: Post review comments
if: steps.settings.outputs.decision == 'review' && steps.guard.outputs.decision == 'review'
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
BRAND: ${{ inputs.brand }}
PR_NUMBER: ${{ steps.pr.outputs.number }}
Expand Down Expand Up @@ -2073,7 +2073,7 @@ runs:
# Runs BEFORE the enforce step so a blocked run still updates the summary.
- name: Summary (PR description)
if: steps.settings.outputs.decision == 'review' && steps.guard.outputs.decision == 'review'
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
# Only comments this identity wrote count as the action's own (markers).
BOT_LOGIN: ${{ steps.pr.outputs.bot_login }}
Expand Down Expand Up @@ -2293,7 +2293,7 @@ runs:
- name: Publish the review status
id: status
if: always() && steps.pr.outputs.run == 'true'
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
STATUS_SCRIPT: ${{ github.action_path }}/scripts/review-status.mjs
STATUS_CONTEXT: ${{ inputs.status-context }}
Expand Down
Loading