Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove multiple internal feeds #23231

Closed
wants to merge 1 commit into from
Closed

Remove multiple internal feeds #23231

wants to merge 1 commit into from

Conversation

gewarren
Copy link
Contributor

@gewarren gewarren commented Mar 9, 2021

NuGet Security Analysis found 1 vulnerable package manifest in the repository. Visit https://aka.ms/nugetmultifeed for more details.

@gewarren
Copy link
Contributor Author

gewarren commented Mar 9, 2021

Should SNIPPETS 5000 have run here?

@@ -3,7 +3,6 @@
<packageSources>
<clear />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
Copy link
Member

@Youssef1313 Youssef1313 Mar 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is certainly a false positive. The removal of the package will break the sample. A security risk is possible only if nuget.org exists along with the private feeds. See also dotnet/roslyn-sdk#725

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Youssef1313 Can we configure it differently? It's blocking our publishing pipeline.

Copy link
Member

@Youssef1313 Youssef1313 Mar 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is currently no way (AFAIK). The appropriate fix should be from roslyn-sdk side when the package is published on nuget.org.

@Youssef1313
Copy link
Member

Youssef1313 commented Mar 9, 2021

@gewarren Yes it should (opened #23233 to track this), and it should fail. You could make a dummy change to any code file in this project to force snippets5000 to be run and confirm it fails.

Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this, once we resolve the build concerns.

@IEvangelist
Copy link
Member

Should SNIPPETS 5000 have run here?

No, it is only configured to run on certain files. See here for the listing. Maye you should add a nuget.config entry?

@Youssef1313
Copy link
Member

@IEvangelist I think it's not the only needed change. See dotnet/samples#3746 (comment)

@IEvangelist
Copy link
Member

@IEvangelist David Pine FTE I think it's not the only needed change. See dotnet/samples#3746 (comment)

Hi @Youssef1313 - I'm well aware my friend. We might end up going with an exclusion listing (negation) rather than include paths, might be simpler to say when we don't want it running versus all the things that we'd like it to trigger on.

@Youssef1313
Copy link
Member

I agree it sounds better to go for an exclusion list. 🎉

@gewarren
Copy link
Contributor Author

PR is incorrect. Also, I was able to add a variable to the pipelines so the build doesn't fail.

@gewarren gewarren closed this Mar 16, 2021
@gewarren gewarren deleted the gewarren-patch-5 branch March 16, 2021 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants