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

feat(jar): add version for SearchByArtifactID function #276

Conversation

DmitriyLewen
Copy link
Collaborator

Description

Add version to SearchByArtifactID function (for Client interface) so that you can get the GroupId with only the required version.
See aquasecurity/trivy/issues/5627

@DmitriyLewen DmitriyLewen self-assigned this Nov 22, 2023
@DmitriyLewen DmitriyLewen marked this pull request as ready for review November 22, 2023 06:24
@@ -153,7 +153,7 @@ func (s Sonatype) SearchBySHA1(sha1 string) (jar.Properties, error) {
}, nil
}

func (s Sonatype) SearchByArtifactID(artifactID string) (string, error) {
func (s Sonatype) SearchByArtifactID(artifactID, _ string) (string, error) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In Trivy we use trivy-java-db.
Tell me if you want to update the sonatype logic as well.

@knqyf263 knqyf263 merged commit a175d05 into aquasecurity:main Nov 28, 2023
2 checks passed
@DmitriyLewen DmitriyLewen deleted the feat-jar/add-version-for-search-by-artifactid branch November 28, 2023 03:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants