Handle pnpm ERR_PNPM_TRUST_DOWNGRADE by silently skipping untrusted versions#14150
Merged
thavaahariharangit merged 7 commits intomainfrom Feb 16, 2026
Merged
Conversation
Contributor
|
Any chance you can create an Integration test for this to prove the fix end to end and prevent future regressions? I fear that these mocked scenarios may be very easy to regress in the future without proper E2E backing |
Contributor
Author
Thanks @yeikel E2E validation is handled in a different repository, but I’ll make sure the corresponding tests are updated there to cover this fix. |
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.
What are you trying to accomplish?
Handle pnpm's
ERR_PNPM_TRUST_DOWNGRADEerror so Dependabot silently skips dependency versions that fail pnpm's supply chain trust checks, instead of recording a failed update.pnpm v10+ includes a trust policy feature that blocks installation when a newer package version has weaker trust evidence than a previously installed version (e.g., lost provenance attestation). When this occurs during a Dependabot update run, the
ERR_PNPM_TRUST_DOWNGRADEerror would previously bubble up as adependency_file_not_resolvablefailure.Anything you want to highlight for special attention from reviewers?
How will you know you've accomplished your goal?
Before this fix:
Ref: https://github.com/thake/pnpm-trustPolicy-demo/actions/runs/21659657181/job/62441720665
After this fix:
End-to-end validation against
thake/pnpm-trustPolicy-demousingscript/dependabot update -f input.jsonshows the dependency silently skipped with a clean finish message and no error recorded.Checklist