-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mkonda/cleanup.2018.10 #137
base: master
Are you sure you want to change the base?
Conversation
require 'pathname' | ||
|
||
# This was written live during AppSecUSA 2018. | ||
class Glue::SafetyCheck < Glue::BaseTask |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests?
require 'glue/util' | ||
require 'pathname' | ||
|
||
# This was written live during AppSecUSA 2018. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
parsed = JSON.parse(results) | ||
parsed.each do |item| | ||
source = { :scanner => @name, :file => "#{item[0]} #{item[2]} from #{@trigger.path}/requirements.txt", :line => nil, :code => nil } | ||
report "Library #{item[0]} has known vulnerabilities.", item[3], source, severity("medium"), fingerprint(item[3]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no way to get the severity?
report "Library #{item[0]} has known vulnerabilities.", item[3], source, severity("medium"), fingerprint(item[3]) | ||
end | ||
rescue Exception => e | ||
Glue.warn e.message |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this should be fatal? The task results parsing failed, the report is not completed...
list = result.split(/\n/) | ||
list.each do |result| | ||
if result =~ /^Warning:/ | ||
Glue.warn "Problem: #{result}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this also should be fatal
Also added k8s example - maybe add something to the documentation folder? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Updated dependencies to current.
(This matters a lot for brakeman etc. but also eliminates vulnerabilities)
Add Omer and others to authors.
Remove version #'s from integration examples.