Skip to content

irgaly/danger-sarif

Repository files navigation

danger-sarif

Gem Version

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

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Make your changes.
  4. Run bundle exec rake spec to run the tests.