name: CodeQL Analysis # **What it does**: This runs CodeQL on this repo. # **Why we have it**: Security scanning. on: push: branches: - main pull_request: branches: - main paths: - "**/*.cjs" - "**/*.html" - "**/*.js" - "**/*.mjs" - "**/*.ts" - "**/*.yml" types: [opened, ready_for_review, reopened, synchronize] # This allows a subsequently queued workflow run to interrupt previous runs concurrency: group: "${{ github.workflow }}-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" cancel-in-progress: true permissions: contents: read jobs: build: name: CodeQL Analysis strategy: matrix: language: ["actions", "javascript-typescript"] runs-on: ubuntu-latest permissions: contents: read security-events: write steps: - name: Check out repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false # Initialises the CodeQL tools for scanning - name: Initialise CodeQL uses: github/codeql-action/init@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 with: config-file: ./.github/codeql-config.yml languages: ${{ matrix.language }} - name: Perform CodeQL analysis uses: github/codeql-action/analyze@9b3254085494b55a0f7c4c2b3d2d52cc712ce370 # v4.39.1 with: category: "/language:${{ matrix.language }}"