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

Enable auditing for package vulnerabilities #66

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

bgrainger
Copy link
Member

This will make it more difficult to ship a Faithlife.Build package that has transitive dependencies on vulnerable packages, which improves the experience for consumers.

The changes to Build.csproj are temporary until an updated package can be published.

This will make it more difficult to ship a Faithlife.Build package that has transitive dependencies on vulnerable packages, which improves the experience for consumers.

The changes to Build.csproj are temporary until an updated package can be published.
@bgrainger bgrainger requested a review from ejball July 11, 2024 03:38
@@ -72,7 +72,7 @@ public sealed class DotNetClassicTool

var bestMatch = VersionRange.Parse(packageVersion).FindBestMatch(packageDirectories) ??
throw new BuildException($"Found restored NuGet package folder but no version is a best match: {packageFullPath}");
var packageBestMatchPath = Path.Combine(packagesPath, packageName.ToLowerInvariant(), bestMatch.OriginalVersion);
var packageBestMatchPath = Path.Combine(packagesPath, packageName.ToLowerInvariant(), bestMatch.OriginalVersion ?? bestMatch.ToString());
Copy link
Member Author

Choose a reason for hiding this comment

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

This was changed due to a nullability analysis warning. Not sure if ! would have worked OK here (i.e., if OriginalVersion is guaranteed to be non-null with the way we initialize it).

@bgrainger bgrainger merged commit 396b30e into Faithlife:master Jul 11, 2024
4 checks passed
@bgrainger bgrainger deleted the nuget-audit branch July 11, 2024 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants