--- name: "CodeQL" on: push: branches: [main, v*.x] pull_request: # The branches below must be a subset of the branches above branches: [main] schedule: - cron: '45 19 * * 1' jobs: analyze: if: github.repository == 'matplotlib/matplotlib' name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: ['c-cpp', 'javascript', 'python'] steps: - name: Checkout repository uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 with: persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10 with: languages: ${{ matrix.language }} - name: Build compiled code if: matrix.language == 'c-cpp' run: | pip install --user --upgrade pip pip install --user -v . - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v4.31.10