Repository navigation
Disable Nuget Audit in VMR builds - #5600
Conversation
ViktorHofer
left a comment
There was a problem hiding this comment.
We shouldn't do this. NuGet Audit uses nuget.org or azdo as an audit source implicitly. So it works today in official builds. We were also in discussion with azdo on supporting audit from anonymous builds.
What is this trying to fix?
|
@ViktorHofer see the discussion on Teams. we need to get this in to fix the VMR build which got broken when we enabled CFSClean. |
|
Disabling this security feature doesn't feel right. If you can't remove the auditSource from nuget repo's NuGet.config for whatever reason, just remove the entry at build time. We already mutate each repo's NuGet.config. |
|
I agree but we should unbreak the buuld first |
|
Ok. I'm just saying that this is the wrong course of action. There is no to do marker or any context on this PR suggesting that this is only for a short period of time. |
|
Cant you just set this property as a build argument only in nuget-client.proj? |
|
ah I didn't see this was set for all projects, I agree we should only do it for nuget-client. I'd still prefer to get this PR in to fix the build and will file a follow-up PR |
Dismissing my request for changes to unblock any efforts here. I already shared my concerns with this approach.
|
/backport to main |
|
Started backporting to |
|
@ViktorHofer Is the concern about local builds? Because any official build will not be able to hit nuget.org. |
True, that seems like a better approach. But, either way, NuGet AUdit is not going to work in official builds against nuget.org, because that endpoint is blocked |
|
@ViktorHofer I don't think it uses nuget.org by default if not specified, or the docs are wrong.
|
No description provided.