Danger plugin for reporting SARIF file.
$ gem install danger-sarif
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
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 '...'
- Clone this repo
- Run
bundle install
to setup dependencies. - Make your changes.
- Run
bundle exec rake spec
to run the tests.