name: codeql on: push: branches: - main pull_request: paths: - .github/workflows/** - '**/*.ts' - '**/*.tsx' - '**/*.mts' - '**/*.cts' - '**/*.js' - '**/*.mjs' - '**/*.cjs' - '**/*.vue' - '**/*.json' schedule: - cron: '0 3 * * 1' workflow_dispatch: permissions: {} # Only a newer commit on the same pull request replaces a run. Pushes to `main` # and scheduled runs get a group of their own, so a burst of merges does not # cancel the analysis of the earlier ones. concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: analyze: name: analyze (${{ matrix.language }}) runs-on: ubuntu-latest timeout-minutes: 30 permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: - actions - javascript-typescript steps: - name: Checkout uses: actions/checkout@v7 - name: Initialize CodeQL uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} - name: Analyze uses: github/codeql-action/analyze@v4 with: category: /language:${{ matrix.language }}