mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 03:30:14 +08:00
Fix rubocop
This commit is contained in:
15
.github/workflows/integration-testing.yml
vendored
15
.github/workflows/integration-testing.yml
vendored
@@ -65,7 +65,20 @@ jobs:
|
||||
shopt -s dotglob
|
||||
mv * ../action/
|
||||
mv ../action/tests/multi-language-repo/* .
|
||||
- uses: arthurnn/code-scanning-rubocop/rubocop-action@master
|
||||
- name: Set up Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 2.6
|
||||
- name: Install Code Scanning integration
|
||||
run: bundle add code-scanning-rubocop --version 0.2.0 --skip-install
|
||||
- name: Install dependencies
|
||||
run: bundle install
|
||||
- name: Rubocop run
|
||||
run: |
|
||||
bash -c "
|
||||
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
|
||||
[[ $? -ne 2 ]]
|
||||
"
|
||||
- uses: ./../action/upload-sarif
|
||||
with:
|
||||
sarif_file: rubocop.sarif
|
||||
|
||||
Reference in New Issue
Block a user