From bda488d4de147aaf0e8bdf12245af84f7bc4124e Mon Sep 17 00:00:00 2001 From: Aaron Siddhartha Mondal Date: Thu, 14 Dec 2023 17:02:20 +0100 Subject: [PATCH] Add CodeQL scanning for Python and JS/TS This scans the Python and javascript/typescript files in the repository. At the moment this is mostly a no-op but it provides a decent foundation for future changes around documentation. --- .github/workflows/codeql.yaml | 43 +++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/codeql.yaml diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml new file mode 100644 index 0000000000..36d13197bb --- /dev/null +++ b/.github/workflows/codeql.yaml @@ -0,0 +1,43 @@ +--- +name: "CodeQL / Docs" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + # Non-peak hour 1:21 AM on Saturdays. + - cron: '21 1 * * 6' + +permissions: read-all + +jobs: + analyze: + name: Analyze docs + runs-on: ['ubuntu-22.04'] + timeout-minutes: 360 + permissions: + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'javascript-typescript', 'python' ] + + steps: + - name: Checkout + uses: >- # v4.1.1 + actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 + + - name: Initialize CodeQL + uses: >- # v3.22.11 + github/codeql-action/init@b374143c1149a9115d881581d29b8390bbcbb59c + with: + languages: ${{ matrix.language }} + + - name: Perform CodeQL Analysis + uses: >- # v3.22.11 + github/codeql-action/analyze@b374143c1149a9115d881581d29b8390bbcbb59c + with: + category: "/language:${{matrix.language}}"