name: CodeQL on: push: branches: - main - master pull_request: branches: - main - master schedule: - cron: "0 4 * * 1" workflow_dispatch: permissions: actions: read contents: read security-events: write jobs: analyze: name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest strategy: fail-fast: false matrix: include: - language: actions build-mode: none - language: javascript-typescript build-mode: none - language: python build-mode: none steps: - uses: actions/checkout@v5 - name: Initialize CodeQL # IMPORTANT: keep CodeQL workflow config versioned in-repo so security # scanning policy changes are reviewable and do not silently drift in UI. uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v4 with: category: "/language:${{ matrix.language }}"