name: CodeQL on: push: branches: ['main'] pull_request: branches: ['main'] pull_request_target: branches: ['main'] permissions: contents: read # Cancel in-progress runs for PRs; never cancel runs on main (merges should not abort each other) concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: analyze: name: Analyze runs-on: ubuntu-latest timeout-minutes: 15 permissions: security-events: write contents: read steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 with: persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4 with: languages: javascript-typescript - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4