Repository navigation
chore(deps): upgrade every dependency and action, drop three third-party actions, lint workflows - #22
Merged
Merged
Conversation
…ease peer tree pnpm 10.32.1 is affected by the pnpm advisories fixed in 10.34.5 (GHSA-c59q-g84q-2gj5, GHSA-vq4v-j7r6-jq4m, GHSA-vx52-2968-3vc6 and others). This version runs the toolkit install in the release jobs; the caller's own install switches to the caller's packageManager pin. autoInstallPeers had pulled semantic-release and its whole tree (bundled npm, @semantic-release/github, undici, js-yaml) into the lockfile although neither library loads it. Turning it off removes 28 of the 31 pnpm audit findings; the regenerated lockfile picks up handlebars 4.7.10 for the rest. minimumReleaseAge keeps future resolutions off packages younger than 7 days. pnpm-workspace.yaml also makes the toolkit its own workspace root. Without it, a caller with a pnpm-workspace.yaml makes the toolkit install resolve to the caller's workspace and silently install nothing.
checkout v7.0.1, setup-node v7.1.0, pnpm/action-setup v6.1.0, github-script v9.0.0, upload-artifact v7.0.2, download-artifact v8.0.2, create-github-app-token v3.3.0, setup-python v7.0.0, harden-runner v2.22.1 and codeql-action v4.39.0. The codeql pin was commented `# v4` but pointed at v4.36.3; the comment now names the exact release. harden-runner v2.22.2, codeql v4.39.1 and setup-python v7.1.0 are held back until they are a week old. setup-node v7 and setup-python v7 only drop inputs these workflows don't pass. github-script v9 stops exposing @actions/github to require(); the scripts here only require node: built-ins.
setup-node restores an npm cache whenever the caller's package.json names npm in packageManager, even without a cache input. The release stages build the published artifacts, so they should never restore cache entries an earlier run wrote.
attest-build-provenance v4 is a thin wrapper that calls actions/attest, and its README points new workflows at actions/attest. With only subject-path set, actions/attest produces the same SLSA provenance predicate that the publish job's gh attestation verify checks, so we drop one action from the signing path.
rtCamp/action-slack-notify is a composite action that pulls and runs a
third-party container image (and can call a second third-party action) on
every release just to POST one webhook message. The Discord notification
already does this with jq and curl; Slack now does the same. The notify job
needs no token scopes, so it gets permissions: {}.
…tion amannn/action-semantic-pull-request ran a full third-party action in a pull_request_target job to apply one regex. The job now reads the live PR title with gh api (a rerun replays the original event payload, so the payload title can be stale) and matches the conventionalcommits preset's header pattern against the allowed types in bash. The token only needs pull-requests: read. The default types list in the README now includes `release`, and types may be comma- or newline-separated as before.
…nning The CI, CodeQL, dependency-review and PR-title stubs pinned the stale `@v1` tag and the release stubs the mutable `@v4` tag, which zizmor flags as unpinned. Every stub now pins v4's commit with a `# v4` comment; the four quality workflows are unchanged between v1 and v4. The README now recommends SHA pins with a version comment and immutable semver release tags, so Dependabot has a version to compare against.
This repo had no Dependabot config, so its own action pins and toolkit lockfile only moved when someone bumped them by hand. It now gets grouped weekly updates. Both it and the copy-in template hold back releases younger than 7 days, which is when most compromised publishes are caught and pulled. Security updates are not subject to the cooldown.
Self test now runs actionlint 1.7.12 and zizmor 1.31.1 from digest-pinned images over the reusable workflows and caller stubs, so an unpinned action, a template injection or an over-broad permission fails the PR. actionlint 1.7.12 does not know the job.workflow_* contexts yet, so those messages are ignored. The three intentional pull_request_target and workflow_run triggers in the stubs carry inline zizmor ignores with the reason they are safe.
chhoumann
force-pushed
the
chore/deps-upgrade-2026-10
branch
from
October 24, 2026 07:53
46dc7e5 to
62a4f43
Compare
chhoumann
marked this pull request as ready for review
October 24, 2026 08:06
chhoumann
added a commit
that referenced
this pull request
Oct 24, 2026
The release workflows run `pnpm --dir .release-toolkit install` from inside the caller's checkout. On ebcf84b a caller pnpm-workspace.yaml made that install run the caller's pnpm (12.14.0 for MetaEdit and notetweet) under its policy, or install the caller's packages instead of the toolkit's (exit 0, for quickadd). The toolkit's own pnpm-workspace.yaml fixed that in #22, but nothing would catch its removal. Self test now installs the toolkit inside a caller pinned to pnpm 12 with a hoisted node linker in both pnpm-workspace.yaml and .npmrc and an impossible minimumReleaseAge, then asserts the toolkit's pnpm ran, the toolkit's deps are installed and nothing was hoisted. It passes on main and fails on ebcf84b and on main without pnpm-workspace.yaml.
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.
Every dependency and action in this repo is now on its latest safe release. Third-party code was removed where our use was a few lines of shell, and this repo's own workflows are now linted. The four plugin repos get a patched pnpm for the release toolkit, one fewer third-party action in each of the release and PR-title paths, and Slack notifications without a third-party container image. Their own installs still use their own
packageManagerpin, and three of them are on the vulnerable 10.32.1 (see below)."Latest safe" here means the newest stable release that is at least 7 days old, has no open advisory, and adds no new install script. Four releases were held back by that rule (see the table).
Dependencies and actions
pnpm(packageManager)preinstall: node install.js, and pnpm 11 needs Node >= 22.13 while callers pick their own Node. This pnpm installs the toolkit in the release jobs. The caller's own install switches to the caller'spackageManagerpin.@semantic-release/commit-analyzer@semantic-release/release-notes-generatorsemantic-release+ tree (peer)autoInstallPeers. Dropping it took the lockfile from 2305 to 412 lines and cleared 28 of the 31pnpm auditfindings (undici, js-yaml).handlebars(transitive)pnpm auditis now clean.spdx-license-ids(transitive)step-security/harden-runneractions/checkoutpnpm/action-setuppnpm/setup, which only supports pnpm 11+.actions/setup-nodeNODE_AUTH_TOKENand moves to ESM. Neither affects these workflows.github/codeql-action/{init,analyze}# v4)actions/dependency-review-actionactions/github-script@actions/githubtorequire(). The scripts here onlyrequire('node:*')built-ins.actions/upload-artifactactions/download-artifactactions/create-github-app-tokenapp-idis now deprecated in favour ofclient-id. Keptapp-id, because switching changes the callers'app-idinput (see follow-ups).actions/setup-pythonpip-installinput, which we don't use. v7.1.0 is 2 days old.actions/attest-build-provenanceactions/attestv4.2.2actions/attest. The wrapper only adds aNODE_OPTIONSheader-size tweak forpush-to-registry, which we don't use. Provenance mode produces the same SLSA predicate thatgh attestation verifychecks.rtCamp/action-slack-notifyjq+curl, the same way the Discord step already works. The action pulled and ran a third-party container image on every release, plus an optional nested third-party action, just to POST one webhook.amannn/action-semantic-pull-requestGITHUB_TOKENin apull_request_targetjob to apply one regex. The shell version fetches the title withgh apiand matches the conventionalcommits preset's header pattern^(\w*)(?:\((.*)\))?!?: (.*)$. Like amannn, it reads the live title because a rerun replays the original event payload. The token needs onlypull-requests: read.rhysd/actionlint(new, CI only)zizmorcore/zizmor(new, CI only)Every action pin above was resolved from its upstream tag to a commit SHA, and the old pins were checked against their version comments. All matched except codeql.
Hardening
pnpm-workspace.yamlsetsautoInstallPeers: falseandminimumReleaseAge: 10080(7 days). The file also fixes a latent bug. Without it,pnpm --dir .release-toolkit installwalks up into the caller's checkout. If the caller has its ownpnpm-workspace.yaml, pnpm uses that workspace and silently installs nothing for the toolkit (reproduced locally). None of the four repos has one today. The parallel threads adding pnpm settings viapnpm-workspace.yamlwould have hit it.package-manager-cache: falsethere. Without it, setup-node v5+ restores an npm cache whenever the caller'spackage.jsonnames npm inpackageManager, even when nocache:input is set.permissions: {}. Every checkout already hadpersist-credentials: false.job.workflow_*contexts yet, so those messages are ignored. The three intentionalpull_request_target/workflow_runtriggers in the stubs carry inline zizmor ignores with a reason.templates/dependabot.ymlhave a 7-daycooldown. Security updates are not delayed.How the downstream repos reference these workflows
@v4(mutable tag)@v4(mutable tag)@ebcf84b… # v4(SHA)@ebcf84b… # v4(SHA)The
v1–v4tags here are plain tags with no ruleset protecting them. Anyone with push access can move one, and MetaEdit and notetweet would run the new code on their next release.Going forward, all four should pin a full commit SHA with a version comment:
For that to work well, this repo should cut immutable semver tags (
v4.1.0, ...) and never move them. Ideally also protectv*tags with a ruleset or turn on immutable releases. Dependabot's github-actions ecosystem can then propose SHA bumps from the version comment. With only a movingv4, there is no newer version for it to compare against.Until that release is cut, the parallel downstream threads should keep
ebcf84b… # v4. That commit works with every stub in this PR. After the release, re-pin to the new tag's SHA.Downstream pnpm pins. QuickAdd, MetaEdit and notetweet declare
"packageManager": "pnpm@10.32.1". pnpm switches to that pin for their ownpnpm install, both in CI and in the release build. So bumping this repo does not patch their installs. Each should move topnpm@10.34.7or newer (>= 10.34.5 fixes the advisories) in its own upgrade PR. PodNotes uses npm.The templates now pin
ebcf84b… # v4instead of the stale@v1/@v4tags. The four quality workflows are byte-identical betweenv1andv4.Not changed, worth a follow-up
create-github-app-tokendeprecatesapp-id. Moving toclient-idchanges the callers'app-idinput and theRELEASE_APP_IDvariable they pass, so it belongs with a coordinated v5.pip install -r <docs-requirements>without--require-hashes. Making that strict would break callers whose requirements files carry no hashes, so it's a downstream change first (PodNotes uses it).Verification
pnpm auditreports 31 vulnerabilities onmainand none on this branch.npm testpasses 67/67..release-toolkit/inside, thenpnpm --dir .release-toolkit install --frozen-lockfile --ignore-scripts. It installs andanalyzeCommitsloads.@v7.ci: $(touch /tmp/pwned) `id` ::warning::xis treated as plain data.fix.dry-run: truepinned to this branch's head SHA. Also send one real Slack message.