From 9f3211203e66dc02cc54c988c6cb59946731d3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Tue, 6 May 2025 14:39:51 +0200 Subject: [PATCH] ci: Run CodeQL --- .github/codeql/codeql-config.yaml | 2 ++ .github/workflows/codeql.yaml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/codeql/codeql-config.yaml create mode 100644 .github/workflows/codeql.yaml diff --git a/.github/codeql/codeql-config.yaml b/.github/codeql/codeql-config.yaml new file mode 100644 index 00000000..d8e0bf33 --- /dev/null +++ b/.github/codeql/codeql-config.yaml @@ -0,0 +1,2 @@ +paths-ignore: + - src/website/shared/migrations diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml new file mode 100644 index 00000000..a1aa497a --- /dev/null +++ b/.github/workflows/codeql.yaml @@ -0,0 +1,30 @@ +name: "CodeQL" + +on: + pull_request: + push: + branches: main + workflow_dispatch: + +permissions: + actions: read + contents: read + security-events: write + +jobs: + codeql: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v29 + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: "python" + queries: security-and-quality + config-file: .github/codeql/codeql-config.yaml + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:python"