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

Add HTTP support for downloading HTTP #7891

Open
knqyf263 opened this issue Nov 8, 2024 · 0 comments · May be fixed by #7892
Open

Add HTTP support for downloading HTTP #7891

knqyf263 opened this issue Nov 8, 2024 · 0 comments · May be fixed by #7892
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@knqyf263
Copy link
Collaborator

knqyf263 commented Nov 8, 2024

Description

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.

$ 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 knqyf263 added the kind/feature Categorizes issue or PR as related to a new feature. label Nov 8, 2024
@knqyf263 knqyf263 added this to the v0.58.0 milestone Nov 8, 2024
@knqyf263 knqyf263 self-assigned this Nov 8, 2024
@knqyf263 knqyf263 linked a pull request Nov 8, 2024 that will close this issue
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant