We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cffb83 commit 6e92e1eCopy full SHA for 6e92e1e
.github/workflows/rubocop.yml
@@ -19,6 +19,10 @@ jobs:
19
- name: Rubocop run --no-doc
20
run: |
21
bash -c "
22
- rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
+ bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
23
[[ $? -ne 2 ]]
24
- "
+ "
25
+ - name: Upload Sarif output
26
+ uses: github/codeql-action/upload-sarif@v1
27
+ with:
28
+ sarif_file: rubocop.sarif
Gemfile
@@ -2,6 +2,7 @@ source 'https://rubygems.org'
2
3
gemspec
4
group :test do
5
+ gem 'code-scanning-rubocop'
6
gem 'rake'
7
gem 'rspec'
8
gem 'rspec_junit_formatter'
0 commit comments