Skip to content

Comments

Mkonda/cleanup.2018.10#137

Open
mkonda wants to merge 3 commits intomasterfrom
mkonda/cleanup.2018.10
Open

Mkonda/cleanup.2018.10#137
mkonda wants to merge 3 commits intomasterfrom
mkonda/cleanup.2018.10

Conversation

@mkonda
Copy link
Collaborator

@mkonda mkonda commented Oct 13, 2018

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.

require 'pathname'

# This was written live during AppSecUSA 2018.
class Glue::SafetyCheck < Glue::BaseTask
Copy link
Collaborator

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.
Copy link
Collaborator

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])
Copy link
Collaborator

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
Copy link
Collaborator

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}"
Copy link
Collaborator

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

@omerlh
Copy link
Collaborator

omerlh commented Oct 14, 2018

Also added k8s example - maybe add something to the documentation folder?
And something to think about - do we want to keep adding new tools as code? Adding them (where possible) as a dynamic task is a bit simpler to maintain. WDYT?

@stale
Copy link

stale bot commented Dec 13, 2018

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.

@stale stale bot added the stale label Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants