Skip to content

Fail vulnerable package update when source mapping excludes all sources - #7746

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-fix-package-update-source-mapping
Oct 6, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-fix-package-update-source-mapping

Conversation

@zivkan

@zivkan zivkan commented Sep 29, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: NuGet/Home#15096

Description

Set the successful flag to false when PSM excludes all sources for a package, while running dotnet package update --vulnerable. This tells the runner to return a non-zero exit code.

Refactored tests, so tests for vulnerable packages have less duplicated setup.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A, not a documented behavior, just a bug.

@zivkan
zivkan requested a review from a team as a code owner September 29, 2026 07:11
@zivkan zivkan added the Merge next release PRs that should not be merged until the dev branch targets the next release label Sep 29, 2026
@dotnet-policy-service dotnet-policy-service Bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Oct 6, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 15 days of this comment, unless it has a "Status:Do not auto close" label. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch.

@zivkan
zivkan merged commit a4013a1 into dev Oct 6, 2026
18 checks passed
@zivkan
zivkan deleted the dev-zivkan-fix-package-update-source-mapping branch October 6, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merge next release PRs that should not be merged until the dev branch targets the next release Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotnet package update --vulnerable has a success exit code when PSM excludes all sources

2 participants