Skip to content

ci: replace the update-lockfile workflow with the pnpm/update action - #13229

Merged
zkochan merged 3 commits into
mainfrom
update-lockfile-action
Jul 23, 2026
Merged

zkochan merged 3 commits into
mainfrom
update-lockfile-action

Conversation

@zkochan

@zkochan zkochan commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Replaces the hand-rolled update-lockfile.yml steps with the new pnpm/update action, dogfooding it on our own repo. The daily job now updates all dependencies to their latest versions, bumps Node.js within its pinned major, bumps pnpm to the latest next-12, updates the GitHub Actions pinned in our workflows, runs the meta-updater, and opens/refreshes a single chore/update-lockfile PR — with branch prep, change detection, force-push, and PR de-dup handled by the action.

This broadens the job from a within-ranges lockfile refresh to a full latest-version update (update-deps: latest) plus GitHub Actions bumps (github-actions: true, which our UPDATE_LOCKFILE_TOKEN already has the workflow scope for). Set update-deps: ranges instead to stay within existing package.json ranges.

Squash Commit Body

The action reproduces this workflow's pattern (persistent chore/update-lockfile
branch off latest main, force-pushed each run, one open PR reused via a
gh-pr-list check), so the bespoke Prepare/Check/Commit/Create steps collapse into
a single `uses:` step. Input mapping:

- update-deps: latest + refresh-lockfile: true -> delete node_modules and
  pnpm-lock.yaml, then `pnpm update --latest -r` for a full refresh.
- github-actions: true -> also bump the actions pinned in .github/workflows and
  action.yml. UPDATE_LOCKFILE_TOKEN already carries the workflow scope (it pushes
  the meta-updater's workflow changes today).
- Node.js: derived from devEngines.runtime (no hardcoded `26`), staying on the
  pinned major.
- update-pnpm: next-12 -> `pnpm self-update next-12`.
- post-update: pnpm update-manifests.
- changesets left on (default): `pnpm update --changeset` records a changeset
  only when a published package's production/peer deps change, and stays silent
  on devDependency-only bumps.
- token: secrets.UPDATE_LOCKFILE_TOKEN, pushed via a single-use credential helper
  (works with persist-credentials: false; referenced only in the action's push
  step, never during install).

The action is SHA-pinned (76f98d72, tagged v0), matching how actions/checkout and
pnpm/setup are pinned here.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust pnpm/ port. (N/A — CI workflow only.)
  • Added a changeset (pnpm changeset) if this PR changes any published package. (N/A — no package change.)
  • Added or updated tests. (N/A — CI workflow; the action has its own test suite.)
  • Updated the documentation if needed. (N/A.)

Summary by CodeRabbit

  • Chores
    • Streamlined the automated lockfile update workflow by delegating the full update-and-publish flow to the pnpm/update GitHub Action.
    • Added a 30-minute execution limit and standardized commit/PR handling and metadata for lockfile updates.
    • Updated the workflow to refresh the lockfile, update dependencies to “latest,” switch to the next-12 pnpm channel, run pnpm update-manifests after updates, and refresh GitHub Actions pins.

Copilot AI review requested due to automatic review settings July 23, 2026 10:30

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

CI: replace update-lockfile workflow steps with pnpm/update action

⚙️ Configuration changes 🕐 20-40 Minutes

Grey Divider

AI Description

• Replace bespoke branch/commit/PR scripting with the SHA-pinned pnpm/update GitHub Action.
• Preserve daily lockfile refresh behavior, including meta-updater and pnpm next-12 bump.
• Add a job-level timeout and keep credentials non-persistent for supply-chain safety.
Diagram

graph TD
  Trigger["Schedule / workflow_dispatch"] --> Job["GHA job: update-lockfile"] --> Checkout["actions/checkout (no creds)"] --> Setup["pnpm/setup (install=false)"] --> Update["pnpm/update action"] --> PR["PR on chore/update-lockfile"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep bespoke bash + gh CLI workflow
  • ➕ No dependency on an external action’s behavior/inputs
  • ➕ Fully transparent control over git/PR edge cases
  • ➖ More maintenance burden and more custom logic to keep secure (auth handling, PR de-dup, retry semantics)
  • ➖ Harder to reuse elsewhere; higher chance of drift in comments/behavior
2. Use Dependabot/Renovate for lockfile maintenance
  • ➕ Standard ecosystem tooling with well-known behavior and dashboards
  • ➕ Less custom CI logic in-repo
  • ➖ May not replicate the exact desired behavior (Node major pinning, meta-updater ordering, single persistent PR)
  • ➖ Potentially different PR cadence/volume vs the single branch/PR model
3. Reusable workflow in-repo (composite/reusable)
  • ➕ Centralizes logic without external dependency; still reduces duplication
  • ➕ Easier to tailor to repo-specific invariants
  • ➖ Still requires owning and testing the implementation surface
  • ➖ Less “dogfooding” of pnpm/update; fewer consumers to harden the logic

Recommendation: The pnpm/update action approach is the best fit here: it collapses a fragile, security-sensitive sequence (branch prep, change detection, force-push, PR reuse) into a single maintained unit while keeping the repo’s hardening posture (non-persisted credentials and SHA pinning). The main follow-up to consider is ensuring workflow permissions remain least-privilege for the token used, but structurally this is an improvement over bespoke scripting.

Files changed (1) +26 / -83

Other (1) +26 / -83
update-lockfile.ymlReplace custom update-lockfile automation with pnpm/update action +26/-83

Replace custom update-lockfile automation with pnpm/update action

• Removes the hand-rolled branch preparation, lockfile regeneration, change detection, push, and PR creation logic. Adds a job-level timeout and delegates the full update+PR lifecycle to a SHA-pinned pnpm/update action with inputs that preserve the existing daily behavior (lockfile refresh, pnpm next-12 bump, and post-update meta-updater).

.github/workflows/update-lockfile.yml

@greptile-apps

greptile-apps Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

The PR appears safe to merge because no blocking failures remain within the follow-up review scope.

No blocking failure remains.

Reviews (3): Last reviewed commit: "ci: generate changesets for production-d..." | Re-trigger Greptile

@qodo-code-review

qodo-code-review Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (2) 📘 Rule violations (0) 📜 Skill insights (0)

Context used
✅ Compliance rules (platform): 18 rules

Grey Divider


Action required

1. Secret token during install ✗ Dismissed 🐞 Bug ⛨ Security
Description
The workflow passes the write-scoped UPDATE_LOCKFILE_TOKEN into the pnpm/update action step that
refreshes the lockfile and runs post-update commands, so the token is present in the step
environment while dependency lifecycle scripts may execute. Unless pnpm/update explicitly scrubs the
token from the environment of its spawned install processes, a compromised dependency can read it
and use it to push to the repo or manipulate PRs.
Code

.github/workflows/update-lockfile.yml[R46-56]

+    - name: Update lockfile, Node.js, and pnpm versions
+      uses: pnpm/update@76f98d727df25f56f9bbd38e60ad663fd785d3d4 # v0
+      with:
+        update-deps: false
+        refresh-lockfile: true
+        changesets: false
+        update-pnpm: next-12
+        post-update: pnpm update-manifests
+        branch: chore/update-lockfile
+        token: ${{ secrets.UPDATE_LOCKFILE_TOKEN }}
+        commit-message: 'chore: update lockfile, Node.js, and pnpm versions'
Relevance

⭐⭐⭐ High

Repo previously accepted scoping write tokens away from install/lifecycle-script steps; this is the
same risk pattern.

PR-#12135
PR-#13072
PR-#12493

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
update-lockfile.yml still calls out that installs run third-party lifecycle scripts and that the
write token is only needed for pushing, but the new pnpm/update step receives the token while also
performing the lockfile refresh/install and post-update actions. Other workflows in this repo
deliberately scope the same secret only to push/PR steps after installs, and the repo security guide
explicitly requires scoping secrets to the step that needs them.

.github/workflows/update-lockfile.yml[33-37]
.github/workflows/update-lockfile.yml[46-56]
.github/workflows/create-release-pr.yml[36-40]
.github/workflows/create-release-pr.yml[151-166]
.github/workflows/update-latest.yml[88-91]
REVIEW_GUIDE.md[101-103]
PR-#13072

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow now supplies a long-lived, write-capable secret (`secrets.UPDATE_LOCKFILE_TOKEN`) to a step that performs dependency installs (`refresh-lockfile: true`) and runs `post-update` commands. Dependency lifecycle scripts are attacker-controlled input in this repo’s threat model, so the token must not be present in the environment of any install/lifecycle execution.

## Issue Context
This repo already documents (in multiple workflows) the intent to avoid exposing write tokens during installs, by using `persist-credentials: false` and only injecting the secret into the final push/PR steps.

## Fix
Do one of the following (preferred first):
1) **Make pnpm/update not propagate the token to install subprocesses**:
  - Update the pinned `pnpm/update` action (in the action repo) so that when it spawns `pnpm install` / `post-update` commands, it passes a sanitized `env` that does **not** include `INPUT_TOKEN` (and ideally not `GITHUB_TOKEN` either if it’s not needed for those subprocesses).
  - Then bump the pinned SHA in this workflow.

2) **Revert to the previous split-step approach** for this workflow, where the secret is only present for git push / PR operations, and the install/meta-updater runs without write secrets.

3) If neither is possible immediately, document (with a code comment) the concrete mechanism by which pnpm/update prevents token exposure to lifecycle scripts (e.g., env scrubbing for child processes), so the security boundary is reviewable.

## Fix Focus Areas
- .github/workflows/update-lockfile.yml[46-56]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Update base not pinned 🐞 Bug ≡ Correctness ⭐ New
Description
update-lockfile.yml still allows workflow_dispatch, but the job no longer fetches/checks out
origin/main (or pins actions/checkout to main) before running pnpm/update, so a manual
dispatch from another ref can generate/force-push chore/update-lockfile from stale or unintended
code.
Code

.github/workflows/update-lockfile.yml[R30-37]

    - name: Checkout Commit
      uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
      with:
        # Don't persist the write-scoped token in .git/config. The full install
        # below runs third-party lifecycle scripts from freshly-bumped
-        # dependencies; the token is only needed to push, which the "Commit and
-        # push" step does with an explicit, single-use remote URL.
+        # dependencies; the token is only needed to push, which pnpm/update does
+        # through a single-use credential helper.
        persist-credentials: false
Relevance

⭐⭐⭐ High

Same risk previously fixed: persistent update branch must reset from latest origin/main for
workflow_dispatch runs.

PR-#12135

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The workflow is manually dispatchable and performs a default checkout without ref: main, then runs
pnpm/update targeting a persistent branch. This reintroduces the same failure mode previously
fixed in this workflow area: basing the persistent branch on whatever ref happened to be checked out
instead of the latest main.

.github/workflows/update-lockfile.yml[3-6]
.github/workflows/update-lockfile.yml[30-37]
.github/workflows/update-lockfile.yml[46-55]
.github/workflows/test.yml[124-133]
PR-#12135

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

### Issue description
The workflow can be manually dispatched from non-`main` refs, but the job no longer ensures the working tree is based on the latest `origin/main` before updating/force-pushing `chore/update-lockfile`.

### Issue Context
This workflow maintains a persistent `chore/update-lockfile` branch. If the run starts from a non-main ref, the update PR may accidentally include unrelated branch content or miss recent main changes.

### Fix Focus Areas
- .github/workflows/update-lockfile.yml[30-37]

### Proposed fix
- Pin the checkout to `main` so both scheduled runs and manual dispatches always operate from the intended base:
 - Add `ref: main` (and optionally `fetch-depth: 0` if the action needs history).
- If `pnpm/update` supports a base input (or expects a specific branch), set it explicitly to `main` as well.
- Alternative: add an explicit `git fetch origin main` and ensure the action runs after the workspace is reset to `origin/main`.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. update-deps intent mismatch 🐞 Bug ⚙ Maintainability
Description
The workflow now explicitly requests update-deps: latest and the PR body says it updates all
dependencies, which is a materially broader maintenance contract than “refresh the lockfile” and can
surprise reviewers/operators who rely on this job for lockfile-only upkeep. This should be
reconciled (either constrain updates to the intended scope, or rename/re-document the workflow/PR
text to match the broadened scope) to avoid accidental merges of much broader changes than expected.
Code

.github/workflows/update-lockfile.yml[R49-65]

+        update-deps: latest
+        refresh-lockfile: true
+        changesets: false
+        github-actions: true
+        update-pnpm: next-12
+        post-update: pnpm update-manifests
+        branch: chore/update-lockfile
+        token: ${{ secrets.UPDATE_LOCKFILE_TOKEN }}
+        commit-message: 'chore: update dependencies, Node.js, pnpm, and GitHub Actions'
+        pr-title: 'chore: update dependencies, Node.js, pnpm, and GitHub Actions'
+        pr-body: |
+          This automated PR bumps the project's dependencies and pinned versions:
+
+          - Updates all dependencies to their latest versions and refreshes the lockfile.
+          - Bumps Node.js to the latest 26.x release, propagated into the CI, release, and benchmark workflows via the meta-updater.
+          - Bumps pnpm to the latest `next-12` release (`packageManager` and `devEngines.packageManager`).
+          - Updates the GitHub Actions pinned in the workflow files.
Relevance

⭐⭐⭐ High

They’ve accepted aligning workflow docs/comments with actual behavior to avoid misleading automation
contracts; this mismatch is material.

PR-#13004
PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new configuration opts into broad dependency and GitHub Actions updates, and the PR body
documents those broader updates; this makes the workflow’s effective scope broader than a
lockfile-only updater and should be reconciled with the intended automation contract to avoid
confusion or accidental merges.

.github/workflows/update-lockfile.yml[46-67]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow is configured to perform broad updates (`update-deps: latest`, `github-actions: true`) and its PR body explicitly states it updates all dependencies and GitHub Actions pins. This expands the workflow’s maintenance contract beyond a lockfile refresh and should be made unambiguous and intentional.

## Issue Context
This job is an automated, recurring updater that opens/refreshes a long-lived PR branch. Small scope mismatches here tend to become recurring churn and review-risk.

## Fix Focus Areas
- .github/workflows/update-lockfile.yml[49-65]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

Previous review results

Review updated until commit 1ed1110

Results up to commit 2ff03b8 ⚖️ Balanced


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Action required
1. Secret token during install ✗ Dismissed 🐞 Bug ⛨ Security
Description
The workflow passes the write-scoped UPDATE_LOCKFILE_TOKEN into the pnpm/update action step that
refreshes the lockfile and runs post-update commands, so the token is present in the step
environment while dependency lifecycle scripts may execute. Unless pnpm/update explicitly scrubs the
token from the environment of its spawned install processes, a compromised dependency can read it
and use it to push to the repo or manipulate PRs.
Code

.github/workflows/update-lockfile.yml[R46-56]

+    - name: Update lockfile, Node.js, and pnpm versions
+      uses: pnpm/update@76f98d727df25f56f9bbd38e60ad663fd785d3d4 # v0
+      with:
+        update-deps: false
+        refresh-lockfile: true
+        changesets: false
+        update-pnpm: next-12
+        post-update: pnpm update-manifests
+        branch: chore/update-lockfile
+        token: ${{ secrets.UPDATE_LOCKFILE_TOKEN }}
+        commit-message: 'chore: update lockfile, Node.js, and pnpm versions'
Relevance

⭐⭐⭐ High

Repo previously accepted scoping write tokens away from install/lifecycle-script steps; this is the
same risk pattern.

PR-#12135
PR-#13072
PR-#12493

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
update-lockfile.yml still calls out that installs run third-party lifecycle scripts and that the
write token is only needed for pushing, but the new pnpm/update step receives the token while also
performing the lockfile refresh/install and post-update actions. Other workflows in this repo
deliberately scope the same secret only to push/PR steps after installs, and the repo security guide
explicitly requires scoping secrets to the step that needs them.

.github/workflows/update-lockfile.yml[33-37]
.github/workflows/update-lockfile.yml[46-56]
.github/workflows/create-release-pr.yml[36-40]
.github/workflows/create-release-pr.yml[151-166]
.github/workflows/update-latest.yml[88-91]
REVIEW_GUIDE.md[101-103]
PR-#13072

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow now supplies a long-lived, write-capable secret (`secrets.UPDATE_LOCKFILE_TOKEN`) to a step that performs dependency installs (`refresh-lockfile: true`) and runs `post-update` commands. Dependency lifecycle scripts are attacker-controlled input in this repo’s threat model, so the token must not be present in the environment of any install/lifecycle execution.

## Issue Context
This repo already documents (in multiple workflows) the intent to avoid exposing write tokens during installs, by using `persist-credentials: false` and only injecting the secret into the final push/PR steps.

## Fix
Do one of the following (preferred first):
1) **Make pnpm/update not propagate the token to install subprocesses**:
  - Update the pinned `pnpm/update` action (in the action repo) so that when it spawns `pnpm install` / `post-update` commands, it passes a sanitized `env` that does **not** include `INPUT_TOKEN` (and ideally not `GITHUB_TOKEN` either if it’s not needed for those subprocesses).
  - Then bump the pinned SHA in this workflow.

2) **Revert to the previous split-step approach** for this workflow, where the secret is only present for git push / PR operations, and the install/meta-updater runs without write secrets.

3) If neither is possible immediately, document (with a code comment) the concrete mechanism by which pnpm/update prevents token exposure to lifecycle scripts (e.g., env scrubbing for child processes), so the security boundary is reviewable.

## Fix Focus Areas
- .github/workflows/update-lockfile.yml[46-56]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Results up to commit eb88c48 ⚖️ Balanced


🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)


Remediation recommended
1. update-deps intent mismatch 🐞 Bug ⚙ Maintainability
Description
The workflow now explicitly requests update-deps: latest and the PR body says it updates all
dependencies, which is a materially broader maintenance contract than “refresh the lockfile” and can
surprise reviewers/operators who rely on this job for lockfile-only upkeep. This should be
reconciled (either constrain updates to the intended scope, or rename/re-document the workflow/PR
text to match the broadened scope) to avoid accidental merges of much broader changes than expected.
Code

.github/workflows/update-lockfile.yml[R49-65]

+        update-deps: latest
+        refresh-lockfile: true
+        changesets: false
+        github-actions: true
+        update-pnpm: next-12
+        post-update: pnpm update-manifests
+        branch: chore/update-lockfile
+        token: ${{ secrets.UPDATE_LOCKFILE_TOKEN }}
+        commit-message: 'chore: update dependencies, Node.js, pnpm, and GitHub Actions'
+        pr-title: 'chore: update dependencies, Node.js, pnpm, and GitHub Actions'
+        pr-body: |
+          This automated PR bumps the project's dependencies and pinned versions:
+
+          - Updates all dependencies to their latest versions and refreshes the lockfile.
+          - Bumps Node.js to the latest 26.x release, propagated into the CI, release, and benchmark workflows via the meta-updater.
+          - Bumps pnpm to the latest `next-12` release (`packageManager` and `devEngines.packageManager`).
+          - Updates the GitHub Actions pinned in the workflow files.
Relevance

⭐⭐⭐ High

They’ve accepted aligning workflow docs/comments with actual behavior to avoid misleading automation
contracts; this mismatch is material.

PR-#13004
PR-#13072

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The new configuration opts into broad dependency and GitHub Actions updates, and the PR body
documents those broader updates; this makes the workflow’s effective scope broader than a
lockfile-only updater and should be reconciled with the intended automation contract to avoid
confusion or accidental merges.

.github/workflows/update-lockfile.yml[46-67]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The workflow is configured to perform broad updates (`update-deps: latest`, `github-actions: true`) and its PR body explicitly states it updates all dependencies and GitHub Actions pins. This expands the workflow’s maintenance contract beyond a lockfile refresh and should be made unambiguous and intentional.

## Issue Context
This job is an automated, recurring updater that opens/refreshes a long-lived PR branch. Small scope mismatches here tend to become recurring churn and review-risk.

## Fix Focus Areas
- .github/workflows/update-lockfile.yml[49-65]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Qodo Logo

Comment thread .github/workflows/update-lockfile.yml Resolved
@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 228273eb-8e1d-4a0a-8e8e-8d762a65e83e

📥 Commits

Reviewing files that changed from the base of the PR and between eb88c48 and 1ed1110.

📒 Files selected for processing (1)
  • .github/workflows/update-lockfile.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/update-lockfile.yml

📝 Walkthrough

Walkthrough

The lockfile workflow replaces custom shell-based dependency updates and pull request handling with the pnpm/update action, while retaining checkout credential isolation and adding explicit timeout, pnpm setup, update, manifest, and pull request settings.

Changes

Lockfile workflow automation

Layer / File(s) Summary
Workflow action migration
.github/workflows/update-lockfile.yml
The job adds a 30-minute timeout and disables Husky hooks, preserves credential-isolated checkout, prepares pnpm without installing dependencies, and delegates dependency, lockfile, pnpm, manifest, GitHub Actions pin, branch, and pull request updates to pnpm/update.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • pnpm/pnpm#13070: Updates lockfile automation alongside Node.js and pnpm version changes.

Suggested reviewers: copilot

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-lockfile-action

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/update-lockfile.yml:
- Around line 39-45: Add the actual release-tag comment for the pinned
`pnpm/setup` action at the `uses` entry in the “Install pnpm” step, matching the
metadata format used by the other action pins. Verify the tag resolves to commit
`77cf06832101b3ac8c65caaf76a21643936d07a4`; do not use an unverified `# v1`
comment.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 77ac01a6-d14e-4046-802f-7d1906bd2ad9

📥 Commits

Reviewing files that changed from the base of the PR and between a4f25f2 and 2ff03b8.

📒 Files selected for processing (1)
  • .github/workflows/update-lockfile.yml

Comment thread .github/workflows/update-lockfile.yml Resolved
Copilot AI review requested due to automatic review settings July 23, 2026 10:51

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit eb88c48

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

Copilot AI review requested due to automatic review settings July 23, 2026 11: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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Jul 23, 2026
@qodo-code-review

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 1ed1110

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@zkochan
zkochan merged commit 50ed6f5 into main Jul 23, 2026
28 checks passed
@zkochan
zkochan deleted the update-lockfile-action branch July 23, 2026 11:38
zkochan added a commit that referenced this pull request Jul 23, 2026
…stry under update --latest (#13234)

## Summary

`pnpm update --latest` (pacquet/v12) fails with `ERR_PNPM_PACKAGE_MANAGER_UPDATE_RESOLVE_LATEST` when a dependency uses a local protocol (`workspace:` / `link:` / `file:`) pointing at a package that isn't published: it tries to fetch the dep's `latest` tag from the registry and gets a 404. This surfaced in the new `pnpm/update`-based update-lockfile job (#13229), whose `@pnpm-private/*` deps are `workspace:*`.

A `workspace:` / `link:` / `file:` dependency links a local directory and may not be published at all, so there is no registry "latest" to fetch. The TS CLI already skips these in `@pnpm/outdated` (`isLocalRef`); pacquet only skipped the narrow `workspace:<path>` form. This broadens the `--latest` resolve gate to skip all three local protocols, preserving them verbatim.

## Tests

`update_latest_preserves_local_protocol_dependencies` — a workspace package linking three unpublished siblings via `workspace:*`, `file:`, and `link:` alongside a real registry dep; asserts all three specifiers are preserved verbatim and the registry dep still resolves. Verified load-bearing: narrowing the guard to `workspace:`-only reproduces the exact 404 on the `file:` dep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants