Nuget indirect dependencies causes errors in dependabot and a false positive PR #11106
Open
1 task done
Labels
L: dotnet:nuget
NuGet packages via nuget or dotnet
L: go:modules
Golang modules
L: python
T: bug 🐞
Something isn't working
Is there an existing issue for this?
Package ecosystem
NuGet
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
Updated dependency
Bump Microsoft.AspNetCore.Components from 6.0.0 to 6.0.25 in /source/...
What you expected to see, versus what you actually saw
I want to scan our code (in this case .NET6) in Azure DevOps, using the Extension from Tingle Software, see also in #10834. The pipeline works in principal with a .NET8 project. With this .NET6 project, the Dependabot task failed:
But even with this error, it creates two PRs:
If I copy the same code into a GitHub repository, I got only one alert:
If I look deeper into the PR for the Microsoft.AspNetCore.Components, it wants to update the Blazored.Toast package. This is the package I use, but this package has a dependency from Microsoft.AspNetCore.Components => indirect dependency! But why does dependabot think, that the vulnerable Microsoft.AspNetCore.Components 6.0.0 should be used? The acutal is 6.0.34.
In the log are warnings:
Some projects in the solution needs to target Windows:
But the pipeline task runs in an Ubuntu image:
The help for NETSDK1100 mentioned to add
to the project. But I don't want modify my code just for a dependabot scan. 😯
dependabot-log.txt
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response
The text was updated successfully, but these errors were encountered: