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

Redundant SCA reports #45750

Open
aep-sunlife opened this issue Dec 13, 2024 · 0 comments
Open

Redundant SCA reports #45750

aep-sunlife opened this issue Dec 13, 2024 · 0 comments
Assignees
Labels
Area-NetSDK untriaged Request triage from a team member

Comments

@aep-sunlife
Copy link

aep-sunlife commented Dec 13, 2024

dotnet build shows the same CVE's twice, sometimes 4x or more.

That doesn't scale well for practical applications, which often exhibit hundreds of CVE's.

The redundant logging is noisy and makes it difficult to navigate the information. At cloud scale, the redundant log lines constitute measurable waste in terms of I/O and storage fees.

Using .NET 8.0.401.

Trace

$ dotnet build
  Determining projects to restore...
/Users/lo40/go/src/bitbucket.us.sunlife/SecOps/hello-world-csharp/hello-world-csharp.csproj : error NU1903: Warning As Error: Package 'Npgsql' 8.0.2 has a known high severity vulnerability, https://github.com/advisories/GHSA-x9vc-6hfv-hg8c
  Failed to restore /Users/lo40/go/src/bitbucket.us.sunlife/SecOps/hello-world-csharp/hello-world-csharp.csproj (in 131 ms).

Build FAILED.

/Users/lo40/go/src/bitbucket.us.sunlife/SecOps/hello-world-csharp/hello-world-csharp.csproj : error NU1903: Warning As Error: Package 'Npgsql' 8.0.2 has a known high severity vulnerability, https://github.com/advisories/GHSA-x9vc-6hfv-hg8c
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.45

hello.csproj

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net8.0</TargetFramework>
        <RootNamespace>hello_world_csharp</RootNamespace>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
        <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Npgsql" Version="8.0.2" />
    </ItemGroup>
</Project>
@eiriktsarpalis eiriktsarpalis transferred this issue from dotnet/core Jan 7, 2025
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-NetSDK untriaged Request triage from a team member labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-NetSDK untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants