-
-
Notifications
You must be signed in to change notification settings - Fork 6
chore(deps): bump pnpm/action-setup from 4 to 5 #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ jobs: | |
| path: base | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 The SHA fc06bc1257f339d1d5d8b3a19a8cae5388b55320 corresponds to pnpm/action-setup v5.0.0, but 8 of 9 updated workflow files still carry the old # v4 comment instead of # v5.0.0. Update the comments in bundle-analysis.yml, docs-check.yml, docs-seo-aeo.yml, prepare-release.yml, release-on-tag.yml, release.yml (two instances), and stable-release.yml to read # v5.0.0. Extended reasoning...What the bug isWhen pinning GitHub Actions by SHA, the version comment alongside the SHA is the only human-readable indicator of which version is actually in use. This PR bumps pnpm/action-setup from v4 to v5 across 9 workflow files. The SHA fc06bc1257f339d1d5d8b3a19a8cae5388b55320 is the v5.0.0 release commit. The specific discrepancyIn ci.yml, the comment was correctly updated to # v5.0.0 alongside the new SHA. But in 8 other files, the same new SHA was used while the comment was left unchanged as # v4. Affected files: bundle-analysis.yml, docs-check.yml, docs-seo-aeo.yml, prepare-release.yml, release-on-tag.yml, release.yml (two instances), and stable-release.yml. Why existing checks do not catch itGitHub Actions resolves the action by SHA, not by the comment, so CI passes without error. There is no automated check that validates consistency between a pinned SHA and its version comment. The mismatch is purely a human-readable documentation issue. ImpactAny maintainer auditing dependencies — reviewing Dependabot PRs, checking for version drift, or assessing supply-chain risk — will see # v4 and believe these jobs are still using v4, even though they are actually running v5. This defeats the entire purpose of annotating pinned SHAs with version comments: traceability and auditability are undermined. Step-by-step proof
FixChange the # v4 comment on all 9 affected lines across the 8 files to # v5.0.0 to match the annotation already present in ci.yml. |
||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ jobs: | |
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@v4 | ||
| uses: pnpm/action-setup@v5 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟣 This is a pre-existing issue: Extended reasoning...BackgroundAll 8 other workflow files in this repository pin GitHub Actions to full 40-character commit SHAs with a version comment (e.g. What the bug is
A mutable tag can be force-pushed by anyone with push access to the upstream action repo. If Why this is pre-existingThis pattern predates the current PR: before this PR, Why the PR is the right place to flag itThe PR directly touches line 27 of Concrete proofStep-by-step inconsistency:
If someone force-pushes the How to fixReplace: uses: pnpm/action-setup@v5with: uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0Ideally, the other mutable-tag references in the file ( |
||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v6 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The SHA
fc06bc1257f339d1d5d8b3a19a8cae5388b55320correctly points topnpm/action-setupv5.0.0 (confirmed byci.ymlwhich correctly annotates it as# v5.0.0), but the inline comment here still reads# v4. This will mislead anyone auditing pinned action versions.The same stale
# v4comment appears in:.github/workflows/bundle-analysis.yml:31.github/workflows/docs-check.yml:65.github/workflows/docs-seo-aeo.yml(Setup pnpm step).github/workflows/prepare-release.yml(Setup pnpm step).github/workflows/release-on-tag.yml(Setup pnpm step).github/workflows/release.yml(both Setup pnpm steps).github/workflows/stable-release.yml(Setup pnpm step)Only
ci.yml(updated to# v5.0.0) anddeploy-docs.yml(uses the floating@v5tag) are correct.Prompt To Fix With AI