Open knqyf263 opened 1 week ago
Adding HTTP support for downloading DBs in addition to OCI. If the DB repository starts with http:// or https://, Trivy downloads DBs via HTTP as below.
http://
https://
$ trivy image --scanners vuln --db-repository https://github.com/knqyf263/trivy-db/releases/download/v2/db.tar.gz alpine:3.20
OCI and HTTP locations can be used together.
$ trivy image --scanners vuln --db-repository ghcr.io/aquasecurity/trivy-db:2 --db-repository https://github.com/knqyf263/trivy-db/releases/download/v2/db.tar.gz alpine:3.20
@knqyf263 Is it possible to add authorization to this feature?
Description
Adding HTTP support for downloading DBs in addition to OCI. If the DB repository starts with
http://
orhttps://
, Trivy downloads DBs via HTTP as below.OCI and HTTP locations can be used together.