Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
c4160c5 to
69a2c34
Compare
69a2c34 to
d0f4f9e
Compare
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
d0f4f9e to
948921c
Compare
0d22ad1 to
4cc7fd8
Compare
4cc7fd8 to
0496760
Compare
0496760 to
7e9a935
Compare
Part of #82782.
What?
Sets
package-manager-cache: falseexplicitly on everyactions/setup-nodestep in the workflows that build and publish release artifacts on this branch (4 steps).build-plugin-zip.ymlbuildbuild-plugin-zip.ymlnpm-publishpublish-npm-packages.ymlreleasepublish-npm-packages.ymlreleaseIt also adds the
cacheinput from 9983882 to.github/setup-node/action.yml. The input defaults totrue. When it isfalse, the action skips thenode_modulescache step and its post-install step, and turns off the npm cache. This branch has nosetup-npmaction, so the npm cache is turned off through thecacheoption ofactions/setup-nodeinstead.Why?
Cache poisoning is an attack in which a release workflow picks up build state cached by an earlier, less-trusted workflow run. A job that produces a published plugin ZIP or npm package should install from the lockfile every time.
actions/setup-node'spackage-manager-cacheinput defaults totrue. It currently engages only whenpackage.jsondeclarespackageManager(ordevEngines.packageManager) naming npm — which this branch does not. That means these jobs are uncached by accident, not by intent: adding that field later would silently switch caching back on in the release path with no visible change to any workflow file. Stating it explicitly removes that dependency on unrelated packaging metadata.How?
Ports WordPress/gutenberg#79835, "Disable caching when publishing built assets", adapted for this branch. Upstream routes these jobs through the composite
.github/setup-nodeaction and threads a newcacheinput through to.github/setup-npm; this branch has nosetup-npmcomposite and its release jobs callactions/setup-nodedirectly, so the equivalent input is set on each step instead.The composite
.github/setup-nodeon this branch now has thecacheinput described above, but none of the release workflows use it: they callactions/setup-nodedirectly, so they are covered bypackage-manager-cache: falseinstead. The Storybook check opts out of the composite action's cache in #84179.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code