From 1e60eea820fff2060fcade50891aa1c957d3a670 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Jul 2026 20:55:36 +0000 Subject: [PATCH] Add CodeQL code scanning workflow --- .github/dependabot.yml | 4 ++++ .github/workflows/codeql-analysis.yml | 32 +++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f8b3bc3..a2c6c57 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,3 +17,7 @@ updates: time: '14:00' cooldown: default-days: 7 + groups: + codeql: + patterns: + - github/codeql-action* diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..645c84e --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,32 @@ +name: "Code scanning - action" + +on: + pull_request: + schedule: + - cron: '0 8 * * 4' + +permissions: + security-events: write # Used by this action. + +jobs: + CodeQL-Build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + with: + fetch-depth: 2 + persist-credentials: false + + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + - name: Initialize CodeQL + uses: github/codeql-action/init@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0 + with: + languages: ruby + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0