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

[VMR] Component Governance errors tracking #3152

Closed
20 tasks done
Tracked by #2362
premun opened this issue Dec 2, 2022 · 6 comments
Closed
20 tasks done
Tracked by #2362

[VMR] Component Governance errors tracking #3152

premun opened this issue Dec 2, 2022 · 6 comments
Assignees
Labels
area-infra Source-build infrastructure and reporting

Comments

@premun
Copy link
Member

premun commented Dec 2, 2022

NuGet problems

⚠️ NuGet Feed Configuration

⚠️ NuGet security analysis - Potential upstreams in a feed

Seems like there might be a feed it cannot access so it cannot decide whether it has upstreams (and potentially leads to nuget.org)

Plus there are more but once we sync the removal of FileSystem and Common submodules, they will go away.

⚠️ CFS0013 - Package source has value that is not an Azure Artifacts feed

Usually, these usually have nuget.org inside. I am not sure how this ties to #3170

⚠️ CFS0011 - C# project(s) are missing feed configuration

These all seem to be our files from the VMR bootstrap that don't resolve to no root NuGet.config file.

NPM problems

⚠️ CFS0001 - Node.js project(s) are missing feed configuration

Missing .npmrc files

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@premun
Copy link
Member Author

premun commented Dec 7, 2022

Just for book-keeping, the variables used to suppress the scans are following:

  • cfsNPMWarnLevel: none
  • cfsNugetWarnLevel: none
  • myGetWarnLevel: none
  • NuGetSecurityAnalysisWarningLevel: none

Present in following pipelines:

@premun
Copy link
Member Author

premun commented May 15, 2023

So, we've got the Source Build NuGet.config without a root config fixed.
We also fixed the source-build-externals ones by cloaking them from the VMR.

I have also dismissed all of the multi-feed AzDO alerts based on https://dev.azure.com/dnceng/internal/_wiki/wikis/DNCEng%20Services%20Wiki/843/SingleFeedFAQ

@premun premun self-assigned this May 15, 2023
@premun
Copy link
Member Author

premun commented May 15, 2023

@brettfo we are seeing an alert in the VMR for this file: fsharp/tests/FSharp.Build.UnitTests/NuGet.Config which is synchronized from the fsharp repo.

I checked the history of the dotnet-fsharp repo and the alert was possibly suppressed wrongly. I can see a number of suppressed alerts in CG due to the multi-feed configuration which CG wrongly detects for our repos where we reference several public AzDO feeds with no upstreams (https://dev.azure.com/dnceng/internal/_wiki/wikis/DNCEng%20Services%20Wiki/843/SingleFeedFAQ). These suppressions are in place and the right step.
However, this linked one I think is not of the same kind. This one is probably missing the <clear /> statement so it's a valid alert and should be resolved differently. I propose reinstating the alert and fixing the NuGet.config file which will in turn fix this in the VMR.

@premun
Copy link
Member Author

premun commented May 15, 2023

@brettfo we are seeing an alert in the VMR for this file: fsharp/tests/FSharp.Build.UnitTests/NuGet.Config which is synchronized from the fsharp repo.

Ah, so it seems that we are probably fine to dismiss this as the root NuGet.config should be enough to functionally match copying the required feeds into the offending config.

@premun
Copy link
Member Author

premun commented May 15, 2023

All critical and high alerts have been resolved so I am closing this now.

I have also set up a weekly email that I get with a report of CG alerts for the VMR.

@premun premun closed this as completed May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infra Source-build infrastructure and reporting
Projects
Archived in project
Development

No branches or pull requests

2 participants