fix: remove redundant auxiliary package bump in publish step to fix SBOM version mismatch MONGOSH-2143#2685
Draft
fix: remove redundant auxiliary package bump in publish step to fix SBOM version mismatch MONGOSH-2143#2685
Conversation
… SBOM version mismatch Co-authored-by: gagik <17454623+gagik@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix SBOM versioning discrepancies in mongosh release process
fix: remove redundant auxiliary package bump in publish/draft to fix SBOM version mismatch
Mar 2, 2026
Contributor
|
@copilot we still need 1 bump to be able to run against the new version |
…ishMongosh Co-authored-by: gagik <17454623+gagik@users.noreply.github.com>
Author
Restored |
Copilot
AI
changed the title
fix: remove redundant auxiliary package bump in publish/draft to fix SBOM version mismatch
fix: remove redundant auxiliary package bump in publish step to fix SBOM version mismatch
Mar 2, 2026
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.
During a full release, auxiliary package versions are bumped twice — once in
compile_ts(when buildingcompiled-ts.tgz) and again in the publish step — causing SBOMs generated during packaging to reference versions that are never actually published to npm.Root cause
bumpAuxiliaryPackages()was called inpublishMongosheven thoughcompiled-ts.tgz(consumed viainstallin every downstream task) already contains package.json files at the post-bump version fromcompile_ts. The second call bumps again, so the SBOM's V1 versions never exist in npm — only V2 does.Changes
publish-mongosh.ts: Removethis.packageBumper.bumpAuxiliaryPackages()frompublish().commitBumpedPackages()still commits the V0→V1 diff captured incompiled-ts.tgz, andpublishToNpm()publishes at V1 — matching what the SBOM captured.run-draft.ts:bumpAuxiliaryPackages()is kept inrunDraft()as it is still needed to run against the new version during the draft step.bumpAuxiliaryPackagesis not called during publish (to prevent regression) and is called during draft.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.