-
-
Notifications
You must be signed in to change notification settings - Fork 8
chore(deps): bump pnpm/action-setup from 5.0.0 to 6.0.1 #342
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 @@ | |
| path: base | ||
|
|
||
| - name: Setup pnpm | ||
| uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4 | ||
| uses: pnpm/action-setup@078e9d416474b29c0c387560859308974f7e9c53 # v4 | ||
|
Check warning on line 31 in .github/workflows/bundle-analysis.yml
|
||
|
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. 🟡 8 workflow files updated the pnpm/action-setup SHA to v6.0.1 but kept stale Extended reasoning...What the bug is and how it manifests This PR bumps pnpm/action-setup from v5.0.0 to v6.0.1, pinning the new SHA The specific code path that triggers it In the diff, every affected file changes from Affected locations in this PR:
Why existing code doesn't prevent it Dependabot automatically updates SHAs but does not update inline version comments — that is a manual responsibility. The inconsistency was already present (some files had What the impact would be Functionally, there is no runtime impact — GitHub Actions resolves the SHA directly, ignoring the comment. However, the security impact is that human reviewers and automated audit tools relying on these comments to verify supply-chain integrity will see How to fix it Replace Step-by-step proof
|
||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6 | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -24,7 +24,7 @@ | |||||
| uses: actions/checkout@v6 | ||||||
|
|
||||||
| - name: Setup pnpm | ||||||
| uses: pnpm/action-setup@v5 | ||||||
| uses: pnpm/action-setup@v6.0.1 | ||||||
|
Check notice on line 27 in .github/workflows/deploy-docs.yml
|
||||||
|
Contributor
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.
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: .github/workflows/deploy-docs.yml
Line: 27
Comment:
**Mutable tag reference — inconsistent with other workflows**
`deploy-docs.yml` uses a mutable tag (`@v6.0.1`) while every other workflow in this PR pins to an immutable SHA. A tag can be force-pushed, so the exact code that runs can change without any diff in this file. Pinning to the same SHA used elsewhere would make supply-chain verification consistent.
```suggestion
uses: pnpm/action-setup@078e9d416474b29c0c387560859308974f7e9c53 # v6.0.1
```
How can I resolve this? If you propose a fix, please make it concise.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. 🟣 deploy-docs.yml uses the mutable tag pnpm/action-setup@v6.0.1 instead of a pinned commit SHA, while all 8 other workflow files in this PR use the immutable SHA @078e9d416474b29c0c387560859308974f7e9c53. This is a pre-existing pattern in this file (it previously used @v5), but the PR touched this line without converting to SHA pinning, leaving an inconsistency across the codebase — the fix is to use pnpm/action-setup@078e9d4 # v6.0.1. Extended reasoning...What the bug is and how it manifests In The specific code path that triggers it A mutable Git tag can be force-pushed by the upstream maintainer ( Why existing code does not prevent it GitHub Actions has no built-in enforcement of SHA pinning. The other files in this PR were correctly updated to use the immutable SHA, but Why this is pre-existing Before this PR, the file used Impact If the How to fix it Replace line 27 with the SHA-pinned reference used in all other workflow files: uses: pnpm/action-setup@078e9d416474b29c0c387560859308974f7e9c53 # v6.0.1Ideally, also convert the other mutable tags in Step-by-step proof
|
||||||
|
|
||||||
| - 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
078e9d416474b29c0c387560859308974f7e9c53points to the v6.0.1 release, but the trailing comment still reads# v4. This makes it harder to audit which action version is actually running. The same stale comment appears indocs-check.yml,docs-seo-aeo.yml,prepare-release.yml,release-on-tag.yml,release.yml, andstable-release.yml.Prompt To Fix With AI