Skip to content

Bump github/codeql-action/upload-sarif from 4.36.3 to 4.37.0 (#282) #967

Bump github/codeql-action/upload-sarif from 4.36.3 to 4.37.0 (#282)

Bump github/codeql-action/upload-sarif from 4.36.3 to 4.37.0 (#282) #967

# Copyright (c) 2023 SolarWinds, LLC.
# All rights reserved.
name: RuboCop Analysis
on:
push:
branches: [ "main" ]
paths-ignore:
- 'test/Dockerfile'
- '.github/*'
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Ruby
uses: ruby/setup-ruby@d45b1a4e94b71acab930e56e79c6aa188764e7f9 # v1
with:
ruby-version: '3.1.0'
- name: Install dependencies
run: |
bundle install
gem install rubocop
gem install rubocop-performance
- name: RuboCop run
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@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4
with:
sarif_file: rubocop.sarif