Skip to content

Commit

Permalink
Disable secret scanning (#111)
Browse files Browse the repository at this point in the history
* Disable secret scanning

* 0.17.3
  • Loading branch information
baksetercx authored Nov 15, 2024
1 parent b84b632 commit 30cd0b2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.17.2
0.17.3
2 changes: 2 additions & 0 deletions pkg/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ func scanImageCommand(
"--ignore-unfixed",
"--exit-code",
exitCode,
"--scanners",
"vuln",
)

cmd.Args = append(cmd.Args, imageName)
Expand Down
10 changes: 10 additions & 0 deletions pkg/scan/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ func TestScanImageCommandNormal(t *testing.T) {
"--ignore-unfixed",
"--exit-code",
"1",
"--scanners",
"vuln",
imageName,
},
" ",
Expand Down Expand Up @@ -73,6 +75,8 @@ func TestScanImageDisableErrorAndMoreSeverities(t *testing.T) {
"--ignore-unfixed",
"--exit-code",
"0",
"--scanners",
"vuln",
imageName,
},
" ",
Expand Down Expand Up @@ -115,6 +119,8 @@ func TestScanImageCommandDisableErrorAndLessSeverities(t *testing.T) {
"--ignore-unfixed",
"--exit-code",
"0",
"--scanners",
"vuln",
imageName,
},
" ",
Expand Down Expand Up @@ -157,6 +163,8 @@ func TestScanImageCommandEventMoreSeverities(t *testing.T) {
"--ignore-unfixed",
"--exit-code",
"0",
"--scanners",
"vuln",
imageName,
},
" ",
Expand Down Expand Up @@ -199,6 +207,8 @@ func TestScanImageCommandAllSeveritiesAndVersionTag(t *testing.T) {
"--ignore-unfixed",
"--exit-code",
"1",
"--scanners",
"vuln",
imageName,
},
" ",
Expand Down

0 comments on commit 30cd0b2

Please sign in to comment.