diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..4f206a4 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +--- +# Advanced setup: default setup cannot select javascript-typescript here +# because the UI scripts live inside index.html rather than a .js file. +name: CodeQL + +on: + push: + branches: [main] + pull_request: + schedule: + - cron: "24 4 * * 1" + +permissions: + contents: read + +jobs: + analyze: + name: Analyze ${{ matrix.language }} + runs-on: ubuntu-latest + permissions: + security-events: write + actions: read + contents: read + strategy: + fail-fast: false + matrix: + language: [c-cpp, javascript-typescript] + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v4 + with: + languages: ${{ matrix.language }} + build-mode: none + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v4 + with: + category: "/language:${{ matrix.language }}"