diff --git a/VERSION b/VERSION index c3d16c1..884e960 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.17.2 +0.17.3 diff --git a/pkg/scan/scan.go b/pkg/scan/scan.go index 6cdf319..aaad869 100644 --- a/pkg/scan/scan.go +++ b/pkg/scan/scan.go @@ -85,6 +85,8 @@ func scanImageCommand( "--ignore-unfixed", "--exit-code", exitCode, + "--scanners", + "vuln", ) cmd.Args = append(cmd.Args, imageName) diff --git a/pkg/scan/scan_test.go b/pkg/scan/scan_test.go index b0ef391..4c37bb0 100644 --- a/pkg/scan/scan_test.go +++ b/pkg/scan/scan_test.go @@ -31,6 +31,8 @@ func TestScanImageCommandNormal(t *testing.T) { "--ignore-unfixed", "--exit-code", "1", + "--scanners", + "vuln", imageName, }, " ", @@ -73,6 +75,8 @@ func TestScanImageDisableErrorAndMoreSeverities(t *testing.T) { "--ignore-unfixed", "--exit-code", "0", + "--scanners", + "vuln", imageName, }, " ", @@ -115,6 +119,8 @@ func TestScanImageCommandDisableErrorAndLessSeverities(t *testing.T) { "--ignore-unfixed", "--exit-code", "0", + "--scanners", + "vuln", imageName, }, " ", @@ -157,6 +163,8 @@ func TestScanImageCommandEventMoreSeverities(t *testing.T) { "--ignore-unfixed", "--exit-code", "0", + "--scanners", + "vuln", imageName, }, " ", @@ -199,6 +207,8 @@ func TestScanImageCommandAllSeveritiesAndVersionTag(t *testing.T) { "--ignore-unfixed", "--exit-code", "1", + "--scanners", + "vuln", imageName, }, " ",