Skip to content

bug(repo): Trivy doesn't show repository metadata if the scan cache contains this scan. #9388

Description

@DmitriyLewen

Description

If the scan cache contains a bucket for a git repository, Trivy doesn't show the RepoMetadata field:

➜ trivy repo -f json -o repo.test --cache-dir .cache --scanners=secret -q https://github.com/test/repo/
➜ jq '.Metadata.RepoURL' repo.test    
"https://github.com/test/repo/"


➜ trivy repo -f json -o repo.test --cache-dir .cache --scanners=secret -q https://github.com/test/repo/
➜ jq '.Metadata.RepoURL' repo.test    
null

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions