Skip to content

Commit

Permalink
Overhaul CLI functionality with urfave/cli (chainguard-dev#436)
Browse files Browse the repository at this point in the history
* Overhaul CLI functionality with urfave/cli

Signed-off-by: egibs <[email protected]>

* Use flags to separate image/path scanning

Signed-off-by: egibs <[email protected]>

* Small tweaks

Signed-off-by: egibs <[email protected]>

* Update test data refresh script, handle scan edge cases

Signed-off-by: egibs <[email protected]>

* Simplify risk level map

Signed-off-by: egibs <[email protected]>

* Update wording/formatting

Signed-off-by: egibs <[email protected]>

* Clean up arg parsing

Signed-off-by: egibs <[email protected]>

* Clean up version string

Signed-off-by: egibs <[email protected]>

* Add separate analyze command for displaying all rule matches

Signed-off-by: egibs <[email protected]>

* Appease the linter

Signed-off-by: egibs <[email protected]>

* Scan flag is not needed

Signed-off-by: egibs <[email protected]>

* Filter out < 3 risk scores when running a scan

Signed-off-by: egibs <[email protected]>

* Severity -> risk

Signed-off-by: egibs <[email protected]>

* Only require flags for analyzing/scanning images

Signed-off-by: egibs <[email protected]>

---------

Signed-off-by: egibs <[email protected]>
Signed-off-by: Evan Gibler <[email protected]>
  • Loading branch information
egibs authored Sep 12, 2024
1 parent 62f3e7b commit a4574cb
Show file tree
Hide file tree
Showing 7 changed files with 435 additions and 168 deletions.
Loading

0 comments on commit a4574cb

Please sign in to comment.