Repository navigation
Conversation
Checking GitHub Actions for updates spawns `git ls-remote` against every repository referenced by the workflow files. That reaches the network in a way pnpm cannot validate up front, and it fails wherever GitHub is not reachable the way pnpm assumes: a GitHub Enterprise Server hosting the actions (#13220), a container with a custom certificate authority (#13254), an offline or proxied CI network. Both reports came within days of the feature shipping, and neither is fixable from pnpm's side, so the check no longer runs unless it is asked for. `pnpm outdated` and `pnpm update` — interactive or not, recursive or not — now read workflow files only with `--include-github-actions` or with `update.githubActions` set to `true`. `update.githubActions: false` keeps working; it is now equivalent to leaving the setting unset, so anyone who added it to silence the warnings needs no change. The opt-in rule lives in one place per stack (`shouldCheckGitHubActions` and `github_actions::opted_in`) and is shared by every call site, so the commands cannot drift apart again. `pnpm outdated` gained the `--include-github-actions` flag it was missing. Closes #13254
📝 WalkthroughWalkthroughGitHub Actions inspection for ChangesGitHub Actions opt-in behavior
Estimated code review effort: 3 (Moderate) | ~25 minutes Assessment against linked issues
Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. 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. Comment |
PR Summary by QodoMake GitHub Actions dependency checks opt-in for pnpm outdated/update
AI Description
Diagram
High-Level Assessment
Files changed (16)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains within the scope of the prior review threads. Reviews (2): Last reviewed commit: "revert(changeset): restore the already-c..." | Re-trigger Greptile |
…sets Both intents were consumed at release time: update-github-actions by [email protected] and [email protected], github-actions-server-setting by [email protected] and [email protected]. Their text is published release notes, so rewriting it to describe the new opt-in default was wrong; the files linger only until the registry-confirmed garbage collection removes them. The behavior change is described by its own changeset.
Micro-Benchmark ResultsLinux |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pnpm11/deps/inspection/commands/test/outdated/githubActions.ts (1)
25-76: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover explicit
update.githubActions: falsein both TypeScript command suites.The PR contract preserves explicit disablement, but neither suite asserts that
falseskips inspection or that--include-github-actionsoverrides it.
pnpm11/deps/inspection/commands/test/outdated/githubActions.ts#L25-L76: add false-config skip and flag-override assertions.pnpm11/installing/commands/test/update/githubActions.ts#L31-L60: add the same assertions for interactive update.As per path instructions, tests must cover default skip, explicit opt-in, and cross-stack parity; the PR objective explicitly requires preserving
update.githubActions: false.🤖 Prompt for 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. In `@pnpm11/deps/inspection/commands/test/outdated/githubActions.ts` around lines 25 - 76, Extend the GitHub Actions tests in pnpm11/deps/inspection/commands/test/outdated/githubActions.ts#L25-L76 and pnpm11/installing/commands/test/update/githubActions.ts#L31-L60 to assert that updateConfig.githubActions: false skips inspection, while includeGithubActions: true overrides the explicit disablement. Preserve coverage for default skip and explicit opt-in, ensuring both command suites maintain equivalent behavior.Source: Path instructions
🤖 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.
Nitpick comments:
In `@pnpm11/deps/inspection/commands/test/outdated/githubActions.ts`:
- Around line 25-76: Extend the GitHub Actions tests in
pnpm11/deps/inspection/commands/test/outdated/githubActions.ts#L25-L76 and
pnpm11/installing/commands/test/update/githubActions.ts#L31-L60 to assert that
updateConfig.githubActions: false skips inspection, while includeGithubActions:
true overrides the explicit disablement. Preserve coverage for default skip and
explicit opt-in, ensuring both command suites maintain equivalent behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 74449416-1865-45f9-b8d8-34178762aeef
📒 Files selected for processing (16)
.changeset/github-actions-server-setting.md.changeset/interactive-update-github-actions-opt-in.md.changeset/update-github-actions.mdpnpm/crates/cli/src/cli_args/outdated.rspnpm/crates/cli/src/cli_args/update.rspnpm/crates/cli/src/cli_args/update/tests.rspnpm/crates/cli/src/github_actions.rspnpm/crates/cli/src/github_actions/tests.rspnpm/crates/config/src/workspace_yaml.rspnpm11/core/types/src/package.tspnpm11/deps/github-actions/src/index.tspnpm11/deps/inspection/commands/src/outdated/outdated.tspnpm11/deps/inspection/commands/src/outdated/recursive.tspnpm11/deps/inspection/commands/test/outdated/githubActions.tspnpm11/installing/commands/src/update/index.tspnpm11/installing/commands/test/update/githubActions.ts
💤 Files with no reviewable changes (1)
- .changeset/github-actions-server-setting.md
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13259 +/- ##
==========================================
- Coverage 86.91% 86.91% -0.01%
==========================================
Files 528 528
Lines 90605 90606 +1
==========================================
- Hits 78752 78746 -6
- Misses 11853 11860 +7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Checking GitHub Actions for updates is now opt-in for every command. Neither
pnpm outdatednorpnpm update— interactive or not, recursive or not — reads the workflow files unless--include-github-actionsis passed orupdate.githubActionsis set totrueinpnpm-workspace.yaml.Reading them runs
git ls-remoteagainst every repository referenced by the workflows. That reaches the network in a way pnpm cannot validate up front, and it fails wherever GitHub is not reachable the way pnpm assumes:outdatedcommand assumes the GitHub Actions dependencies are at https://github.com/actions #13220),11.17.0prints warning about certificate onpnpm update --interactive#13254),Both reports arrived within days of the feature shipping, and neither is fixable from pnpm's side — the environment is invisible to us until the
gitcall already failed. Users who explicitly ask for the check are in a position to expect the network traffic; users running a read-onlypnpm outdatedare not.Also in this PR:
pnpm outdatedgained the--include-github-actionsflag it was missing, so the check can be run once without editingpnpm-workspace.yaml.update.githubActions: falsekeeps working — it is now equivalent to leaving the setting unset, so anyone who added it to silence the warnings needs no change.shouldCheckGitHubActionsin@pnpm/deps.github-actions,github_actions::opted_inin pacquet) and is shared by every call site, sooutdatedandupdatecannot drift apart again — which is how the interactive-update default diverged in the first place.Discoverability is deliberately left to the docs and release notes for now; nothing in the CLI advertises the feature when it is off.
Closes #13254
Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Claude Code, claude-opus-4-8).