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

Trivy image with flag --java-db-repository is adding ":1" to the URL of container repo #6218

Closed
2 tasks done
DmitriyLewen opened this issue Feb 28, 2024 Discussed in #6202 · 0 comments · Fixed by #6219
Closed
2 tasks done

Trivy image with flag --java-db-repository is adding ":1" to the URL of container repo #6218

DmitriyLewen opened this issue Feb 28, 2024 Discussed in #6202 · 0 comments · Fixed by #6219
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@DmitriyLewen
Copy link
Contributor

Discussed in #6202

Originally posted by KMikkey February 26, 2024

Description

After use of below command
trivy image -d --java-db-repository gitlab.example.com:4444/app/core-app/trivy-java-db:latest
this error appear
ERROR Unable to initialize the Java DB: Java DB update failed: Java DB update error: DB download error: repository name error (gitlab.example.com:4444/app/core-app/trivy-java-db:latest:1): could not parse reference: gitlab.example.com:4444/app/core-app/trivy-java-db:latest:1

Desired Behavior

Download of java-db from repository.

Actual Behavior

Download of java-db is not possible due to add of ":1" to the URL.

Reproduction Steps

1.
2.
3.
...

Target

Container Image

Scanner

Vulnerability

Output Format

JSON

Mode

Standalone

Debug Output

2024-02-22T14:49:49.707Z	INFO	JAR files found
2024-02-22T14:49:49.707Z	INFO	Java DB Repository: gitlab.example.com:4444/app/core-app/trivy-java-db:latest:1
2024-02-22T14:49:49.707Z	INFO	Downloading the Java DB...
2024-02-22T14:49:49.707Z	ERROR	Unable to initialize the Java DB: Java DB update failed: Java DB update error: DB download error: repository name error (gitlab.example.com:4444/app/core-app/trivy-java-db:latest:1): could not parse reference: gitlab.example.com:4444/app/core-app/trivy-java-db:latest:1
2024-02-22T14:49:49.738Z	FATAL	image scan error:

Operating System

CentOS7

Version

Version: 0.40.0

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
1 participant