1name: "CodeQL" 2 3on: 4 push: 5 pull_request: 6 7jobs: 8 analyze: 9 name: Analyze 10 runs-on: ubuntu-latest 11 permissions: 12 actions: read 13 contents: read 14 security-events: write 15 16 strategy: 17 fail-fast: false 18 matrix: 19 language: [ 'cpp', 'python' ] 20 21 steps: 22 - name: Set make jobs 23 run: | 24 echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV 25 26 - name: Checkout repository 27 uses: actions/checkout@v3 28 29 - name: Initialize CodeQL 30 uses: github/codeql-action/init@v2 31 with: 32 languages: ${{ matrix.language }} 33 34 - name: Autobuild 35 uses: github/codeql-action/autobuild@v2 36 37 - name: Perform CodeQL Analysis 38 uses: github/codeql-action/analyze@v2 39 with: 40 category: "/language:${{matrix.language}}" 41