danger-sarif
Danger plugin for reporting SARIF file.
Installation
$ gem install danger-sarif
Usage
report from SARIF file
# Dangerfile
sarif.report 'app/build/reports/lint-results-debug.sarif'
report from multiple SARIF files
# Dangerfile
Dir['**/build/reports/lint-results-*.sarif'].each do |file|
sarif.report file
end
Options
option | description |
---|---|
sarif.fail_on_error |
Set the behavior that treating error as fail or not. default: true |
# Dangerfile
sarif.fail_on_error false
sarif.report '...'
Development
- Clone this repo
- Run
bundle install
to setup dependencies. - Make your changes.
- Run
bundle exec rake spec
to run the tests.