-
-
Notifications
You must be signed in to change notification settings - Fork 2
Implement comprehensive risk metric system for NuGet package analysis #97
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
base: main
Are you sure you want to change the base?
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.