Install newer version of code-scanning-rubocop

This commit is contained in:
Michael B. Gale
2026-10-26 13:29:56 +00:00
parent eac0005d0c
commit ab743b6301
2 changed files with 8 additions and 2 deletions

View File

@@ -59,15 +59,18 @@ jobs:
ruby-version: 3.4
- name: Install Code Scanning integration
run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
run: bundle add code-scanning-rubocop --version 0.6.1 --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

View File

@@ -10,15 +10,18 @@ steps:
ruby-version: 3.4
- name: Install Code Scanning integration
run: bundle add code-scanning-rubocop --version 0.3.0 --skip-install
run: bundle add code-scanning-rubocop --version 0.6.1 --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