ci: add scheduled lockfile maintenance for transitive security updates - #72
Merged
Conversation
pnpm 11.x ignores targeted updates of transitive-only dependencies (pnpm/pnpm#12744), so Dependabot's security-update command is a silent no-op. A monthly and on-demand untargeted lockfile refresh lands the same fixes with workspace overrides untouched. Refs putdotio/putio-frontend#29 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to regularly refresh pnpm-lock.yaml so transitive security advisory fixes can land even when pnpm 11.x ignores targeted transitive-only updates, and to raise/maintain an automated PR using the release-bot GitHub App token.
Changes:
- Introduces a scheduled (monthly) + manually dispatchable “Lockfile maintenance” workflow.
- Runs
corepack pnpm update --lockfile-only -rto re-resolve transitive dependencies without changing declared ranges/overrides. - Creates/updates a PR on a dedicated branch using the release-bot identity and token.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- run only on refs/heads/main: a workflow_dispatch from another ref would force-push the maintenance branch from a stale base - environment: release — PUTIO_RELEASE_BOT_CLIENT_ID and the App private key are environment-scoped; the first dispatch failed to mint a token without it (taizn actions run 32328993072) - job-level contents: read for checkout, matching the house baseline - align the bot identity lookup with the fleet-majority form (%5Bbot%5D path, user_id output) Refs putdotio/putio-frontend#29 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
|
🎉 This PR is included in version 1.6.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a scheduled Lockfile maintenance workflow (monthly cron + manual dispatch) that runs
corepack pnpm update --lockfile-only -rand opens a PR with the release-bot App token when the lockfile moves.Dependabot's transitive security-update command (
corepack pnpm update <pkg>@<version> --lockfile-only --no-save -r) is a silent no-op under pnpm 11.x because targeted versions of transitive-only dependencies are ignored (pnpm/pnpm#12744), so transitive advisories can never land here. The untargeted refresh resolves the same fixes with workspace overrides untouched.Verification
postcss@8.5.26update is a no-op under pnpm 11.2.2 and 11.22.0 (with and without overrides); untargetedcorepack pnpm update --lockfile-only -rresolves postcss 8.5.16 -> 8.5.26 under pnpm 11.2.2 withcatalog:overrides intact, and the result passespnpm install --lockfile-only.Notes
pull_requestworkflows, so verify gates the automated PR (defaultGITHUB_TOKENPRs would not trigger it).packageManageronce a stable pnpm ships the upstream fix (pnpm/pnpm#12558 — present in 12.0.0-rc.7, absent in 11.22.0); the workflow can stay as routine hygiene.