-
Notifications
You must be signed in to change notification settings - Fork 376
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
feat(cmd): add source
and image
subcommands to scan
#1519
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1519 +/- ##
==========================================
- Coverage 69.08% 68.96% -0.13%
==========================================
Files 197 200 +3
Lines 18864 18959 +95
==========================================
+ Hits 13033 13075 +42
- Misses 5129 5164 +35
- Partials 702 720 +18 ☔ View full report in Codecov by Sentry. |
Let's update the |
project
and docker
subcommands to scan
source
and image
subcommands to scan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor comments, otherwise this looks good!
This change does not break any existing behaviour.
source
andimage
subcommands forscan
.source
as the default subcommand if none is provided.experimental-oci-image
flag and its tests.For project scanning, users can use the following commands:
osv-scanner <file_name>
osv-scanner scan <file_name>
osv-scanner scan source <file_name>
For docker scanning, users can use the following commands:
osv-scanner scan image <docker_image>
osv-scanner scan image --archive <docker_image.tar>
Help command: