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

Add support for git ecosystem #657

Open
Thor77 opened this issue Jun 27, 2024 · 3 comments
Open

Add support for git ecosystem #657

Thor77 opened this issue Jun 27, 2024 · 3 comments

Comments

@Thor77
Copy link

Thor77 commented Jun 27, 2024

Is there anything blocking support for the GIT ecosystem (and therefore also git- related datasources in renovate)?
It should be as simple as adding it to the list of ecosystems in

or am I missing something?

@Churro
Copy link
Contributor

Churro commented Jun 27, 2024

Currently not supported by renovate. Adding git as an ecosystem here isn't enough either, since the query interface is tailored to PURL-based ecosystems:

async query(
ecosystem: Ecosystem,
packageName: string
): Promise<Osv.Vulnerability[]> {

@Thor77
Copy link
Author

Thor77 commented Jun 28, 2024

So this would need additional changes in 1. OSV to support packageurl for git releases 2. renovate to query osv for the git- datasources?

@Churro
Copy link
Contributor

Churro commented Jun 28, 2024

Not exactly. PURL identifiers are designed to work only with package based ecosystems (maven, npm, go, ...), so this OSV interface would need a new git-tailored query interface. That's the easy part. More effort are the changes in renovate because unlike checking just if version A < version B, for git it would need to traverse the whole commit graph of a repo to check if a commit is in a vulnerable range of commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants