From 0b0e51c888b062af522fc0e79c90c94603deef33 Mon Sep 17 00:00:00 2001 From: Renn F Date: Wed, 21 Oct 2026 01:16:11 +0200 Subject: [PATCH] ci(codeql): scan the workflows and every language in one code-ql job --- .github/workflows/code-ql.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/code-ql.yml diff --git a/.github/workflows/code-ql.yml b/.github/workflows/code-ql.yml new file mode 100644 index 0000000..603ca96 --- /dev/null +++ b/.github/workflows/code-ql.yml @@ -0,0 +1,38 @@ +name: CodeQL + +on: + push: + branches: [master] + pull_request: + branches: [master] + schedule: + - cron: '0 5 * * 1' + workflow_dispatch: + +permissions: {} + +jobs: + # CodeQL has no PHP support, so this scans the workflows (actions). One job, so the required check context is + # exactly `code-ql`. + code-ql: + name: code-ql + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + steps: + - name: Checkout code + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Initialize CodeQL + uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0 + with: + languages: actions + build-mode: none + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0