Skip to content

Upload Sarif

Upload Sarif #703

Workflow file for this run

name: Upload Sarif
on:
schedule:
- cron: '0 0 * * *'
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- name: Setup Branch
uses: actions/checkout@v4
- name: Set Up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
bundler-cache: true
- name: Generate Sarif Output
run: bundle exec rubocop --require code_scanning --display-cop-names --format CodeScanning::SarifFormatter -o rubocop.sarif
- name: Upload Sarif Output
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: rubocop.sarif