Trivy image with flag --java-db-repository is adding ":1" to the URL of container repo #6218
Closed
2 tasks done
Labels
kind/bug
Categorizes issue or PR as related to a bug.
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
Target
Container Image
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
CentOS7
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: