Skip to content

Commit 6e92e1e

Browse files
committed
adding support for rubocop sarif
1 parent 9cffb83 commit 6e92e1e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/rubocop.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
- name: Rubocop run --no-doc
2020
run: |
2121
bash -c "
22-
rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
22+
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
2323
[[ $? -ne 2 ]]
24-
"
24+
"
25+
- name: Upload Sarif output
26+
uses: github/codeql-action/upload-sarif@v1
27+
with:
28+
sarif_file: rubocop.sarif

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
22

33
gemspec
44
group :test do
5+
gem 'code-scanning-rubocop'
56
gem 'rake'
67
gem 'rspec'
78
gem 'rspec_junit_formatter'

0 commit comments

Comments
 (0)