Repository navigation
chore(ci): exclude encodeurl@2.0.2 from the site template trust policy - #12947
Conversation
See pillarjs/encodeurl#43 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
⚡️ Lighthouse report for the deploy preview of this PR
|
Motivation
The
Supply Chain - Site Template @latestand@canaryjobs fail onmainand on every PR (for example @latest and @canary):encodeurl@3.0.0was published with npm trusted publishing, then2.0.2was published by hand from the2.xbranch. pnpm'strustPolicy: no-downgradecompares releases by publish date, so it flags 2.0.2. I reviewed the release: it is legitimate (see below). This PR adds it to thetrustPolicyExcludelist of the Site Template job, like the existing entries. A TODO comment links the upstream issue, to remove the entry once it is closed.Review of encodeurl 2.0.2 (and 1.0.3)
dist.integrity.index.js(ENCODE_CHARS_REGEXP, capped at{1,1024}runs to bound RegExp stack use) and the version.lint/test), no new files, norequire,process, fs, network,child_processoreval, no obfuscated code.v2.0.2tag (f805c3e, a GitHub-verified commit on2.x), from the merged backport Backport encoding regex pillarjs/encodeurl#41 of Fix encoding of a "%" next to a valid sequence or at the end pillarjs/encodeurl#40.1.x(Backport encoding regex pillarjs/encodeurl#42), also identical to its tag. Our templates don't pull it.Why not upgrade to encodeurl v3?
No
@docusaurus/*package depends onencodeurldirectly. It only comes in throughwebpack-dev-server(v5 for@latest, v6 for@canary) → express 4/5 → send, serve-static and finalhandler, which requireencodeurl~2.0.0/^2.0.0. v3 is ESM-only and only exports a namedencodeUrl, while they callrequire('encodeurl')(url), so overriding it to v3 would break them.Possible follow-up
The monorepo job passes because the lockfile pins
encodeurl@2.0.0. Once the lockfile moves to 2.0.2, the rootpnpm-workspace.yamlmight need the sametrustPolicyExcludeentry.Test Plan
CI: the
Supply Chain - Site Templatejobs pass on this PR.Related issues/PRs
docusaurus serveserves the nearest 404.html, like localized 404 pages #12946🤖 Generated with Claude Code
Summary by CodeRabbit