build(deps-dev): bump the rubocop group across 1 directory with 4 updates #2812
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ruby lint CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_WITHOUT: development | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 3.3.4 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3.4 | |
bundler-cache: true | |
- name: Run static code analysis using rubocop | |
run: | | |
bash -c " | |
bundle exec rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif | |
[[ $? -ne 2 ]] | |
" | |
- name: Upload Sarif output | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: rubocop.sarif |