Repository navigation
ACOMMONS-198 Preserve npm package integrity across Repox and public npm - #552
Conversation
|
🔗 Commit SHA: 19c2d7c | Docs | View more details | Give us feedback! |
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Release workflow now publishes the Repox tarball directly to public npm. Fixes npm package integrity mismatches across Repox and public npm by publishing the downloaded tarball directly instead of extracting and repacking it, which eliminates SHA-512 checksum differences. Integrity validation now runs immediately after publish to catch registry lag issues. ✅ 1 closed✅ Edge Case: Integrity check runs right after publish, so registry lag can fail it
Review coverage🧪 Functional validation No results 📋 Rules No rules evaluated Cross-repo coverage 1 repository selected Cross-repo inspection is incomplete. Unread code may contain additional impacts. 🤖 Auto-approval Not enabled · Set up OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|





Publishing from an extracted package directory repacks the Maven-built archive already uploaded to Repox. This produces different SHA-512 checksums for the same package version on Repox and public npm, causing
npm ciintegrity failures when a public lockfile is installed through Artifactory. For2.31.0-5284, the archives contain identical files but are 2,861 and 2,840 bytes respectively; SonarSource/SonarJS#8090 exposed this mismatch.Publish the downloaded Repox tarball directly to public npm instead of extracting and repacking it. Retain Trusted Publishing, provenance, public access, and the latest tag. Both registries then serve the same archive without additional packing or checksum-management logic.
Validation:
npm publish --dry-runpreserves the downloaded tarball's integrity.Actual OIDC/provenance publication requires a release run. Existing published versions are not repaired by this change.