diff --git a/.github/workflows/scan-codeql.yml b/.github/workflows/scan-codeql.yml new file mode 100644 index 000000000..6a32feb37 --- /dev/null +++ b/.github/workflows/scan-codeql.yml @@ -0,0 +1,48 @@ +name: "CodeQL Scan" + +on: + push: + branches: + - staging + pull_request: + types: + - opened + - ready_for_review + - reopened + pull_request_review: + types: + - submitted + - edited + +jobs: + analyze: + name: Analyze + runs-on: [ubuntu-latest] + timeout-minutes: 10 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'python', 'javascript' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}"