diff --git a/.github/workflows/codeql-ruby.yaml b/.github/workflows/codeql-ruby.yaml new file mode 100644 index 00000000..81863f43 --- /dev/null +++ b/.github/workflows/codeql-ruby.yaml @@ -0,0 +1,36 @@ +name: codeql-ruby + +permissions: { } + +on: + push: + branches: + - main + pull_request: + branches: + - main + schedule: + - cron: '35 11 * * 2' + +concurrency: + # Cancels in-progress runs only for pull requests + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + analyze: + name: Analyze Ruby + runs-on: 'ubuntu-latest' + permissions: + security-events: write + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: false + - uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + with: + languages: ruby + build-mode: none + - uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v4.35.1 + with: + category: "/language:ruby"