Skip to content

Commit

Permalink
Ensure REX job exits zero for successful scans
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankolb committed Jun 20, 2024
1 parent 4a5b8cb commit bad38df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ scanners = {

if scanner == 'trivy'
cmd = "#{scanners[:trivy][target]} #{path}"
options += " --scanners vuln --quiet --format json"
options += " --exit-code 0 --scanners vuln --quiet --format json"
elsif scanner == 'grype'
cmd = "#{scanners[:grype][target]}:#{path}"
options += " --quiet --quiet --output json"
Expand Down

0 comments on commit bad38df

Please sign in to comment.