Skip to content

verify-action-build: detect the tarball root instead of assuming package/ - #1174

Open
potiuk wants to merge 1 commit into
mainfrom
fix/npm-registry-definitelytyped-root
Open

verify-action-build: detect the tarball root instead of assuming package/#1174
potiuk wants to merge 1 commit into
mainfrom
fix/npm-registry-definitelytyped-root

Conversation

@potiuk

@potiuk potiuk commented Aug 12, 2026

Copy link
Copy Markdown
Member

Code change

Summary

_tarball_files() stripped a literal package/ prefix from npm tarball members. DefinitelyTyped roots @types/* tarballs at the bare package name instead (estree/index.d.ts, json-schema/LICENSE), so no extracted path lined up with node_modules/@types/<pkg>/<rel>, nothing was accounted for, and every file of every vendored @types package was reported as injected code - after that tarball had already passed integrity verification.

The root directory is now detected rather than assumed, and ./-prefixed member names are normalised. A tarball whose files do not all share one root is left untouched.

Surfaced by #1171 (JamesIves/github-pages-deploy-action v4.9.0), whose yarn -> npm migration added node_modules/.package-lock.json and so switched this check on for the first time. It reported 13 extra files across @types/esrecurse, @types/estree and @types/json-schema.

Type of change

  • Bug fix

Testing


Drafted-by: Claude Code (Opus 5); reviewed by @potiuk before posting

…age/

DefinitelyTyped roots @types/* tarballs at the bare package name
(estree/index.d.ts), not package/. _tarball_files stripped only a
literal "package/", so no extracted path lined up with
node_modules/@types/<pkg>/<rel>, nothing was accounted for, and every
file of every vendored @types package was reported as injected code --
even though the tarball had already passed integrity verification.

Surfaced by #1171 (github-pages-deploy-action v4.9.0), whose yarn -> npm
migration added node_modules/.package-lock.json and so switched this
check on for the first time. With the fix that commit verifies clean:
116 packages, 0 extra.

Generated-by: Claude Code (Opus 5)
@potiuk potiuk mentioned this pull request Aug 17, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant