Skip to content
Snippets Groups Projects
Unverified Commit 1b96fba1 authored by Yorick Peterse's avatar Yorick Peterse
Browse files

Make sure scripts/audit.rb always exits with 0

parent bffdb0c1
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -7,7 +7,6 @@ require 'open3'
 
stdout, _, _ = Open3.capture3('cargo audit -f vm/Cargo.lock --json')
json = stdout.strip
status = 0
 
report = {
version: '2.1',
Loading
Loading
@@ -17,7 +16,6 @@ report = {
 
unless json.empty?
raw_report = JSON.parse(json)
status = 1
 
raw_report['vulnerabilities']['list'].each do |vuln|
advisory = vuln['advisory']
Loading
Loading
@@ -69,5 +67,3 @@ end
File.open('gl-dependency-scanning-report.json', 'w') do |handle|
handle.write(JSON.pretty_generate(report))
end
exit(status)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment