name: codeql on: pull_request: branches: - main push: branches: - main schedule: - cron: '33 16 * * 0' permissions: contents: read # Needed to checkout the repository. concurrency: group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.sha }}" cancel-in-progress: true jobs: analyze: name: analyze (${{ matrix.language }}) runs-on: 'ubuntu-latest' permissions: security-events: write # Needed to upload results. packages: read # Needed to fetch internal or private CodeQL packs. actions: read # Needed to read workflows. contents: read # Needed to checkout the repository. strategy: fail-fast: false matrix: include: - language: actions build-mode: none - language: rust build-mode: none steps: - name: harden runner uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 with: egress-policy: audit - name: checkout uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: persist-credentials: false - name: initialize codeql uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} config-file: ./.github/codeql/codeql-config.yaml - name: perform codeql analysis uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 with: category: "/language:${{matrix.language}}"