Implement comprehensive risk metric system for NuGet package analysis#97
Implement comprehensive risk metric system for NuGet package analysis#97
Conversation
|
@dennisdoomen 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs. I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review. |
Co-authored-by: dennisdoomen <572734+dennisdoomen@users.noreply.github.com>
Co-authored-by: dennisdoomen <572734+dennisdoomen@users.noreply.github.com>
Co-authored-by: dennisdoomen <572734+dennisdoomen@users.noreply.github.com>
| var risk = 0.0; | ||
|
|
||
| // Source transparency risk | ||
| if (string.IsNullOrEmpty(package.RepositoryUrl)) |
There was a problem hiding this comment.
Consider using the following database as it has an Open API endpoint and doesn't require authentication
Open API specification
https://osv.dev/docs/osv_service_v1.swagger.json
I quickly played around with this, when adding a connected service to the endpoint, you can easily get the details:
static async Task Main(string[] args)
{
var httpClient = new HttpClient();
// Set the correct base address for the OSV API
var client = new _osv_service_v1_swaggerClient(httpClient);
client.BaseUrl = "https://api.osv.dev";
var package = new OsvPackage();
package.Name = "NHibernate";
package.Ecosystem = "NuGet";
var response = await client.QueryAffectedAsync(new V1Query() { Package = package, Version = "5.1.0" });
}|
@copilot Please rebuild this PR based on the latest version of |
✅ Done! I've rebuilt this PR based on the latest version of The implementation has been successfully updated and includes:
Commits:
|
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.