diff --git a/.github/workflows/integration-testing.yml b/.github/workflows/integration-testing.yml index 4f1600551..1b647024c 100644 --- a/.github/workflows/integration-testing.yml +++ b/.github/workflows/integration-testing.yml @@ -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