name: CodeQL on: pull_request: branches: ['main'] schedule: - cron: '17 3 * * *' workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }} permissions: actions: read contents: read packages: 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: c-cpp build-mode: none - language: javascript-typescript build-mode: none steps: - name: Checkout uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with: fetch-depth: 1 - name: Initialize CodeQL uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} config: | threat-models: local queries: - uses: security-extended - name: Analyze uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd with: category: /language:${{ matrix.language }}