From b2d7a36c4a65330aff1580de8d289c9ef93fc724 Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Wed, 2 Apr 2025 13:16:46 +0100 Subject: [PATCH] Add codeQL action --- .github/workflows/codeql.yml | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..d5ddddb --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,39 @@ +--- +name: "CodeQL Advanced" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '42 10 * * 4' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + security-events: write + packages: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + - language: python + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: none + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}"