diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 210234bd5..72b8d3a4f 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -9,6 +9,10 @@ jobs: shell: bash name: GCC-C++${{matrix.std}}-${{matrix.build_type}}-${{matrix.lib}} runs-on: ubuntu-22.04 + permissions: + actions: read + contents: read + security-events: write strategy: fail-fast: true matrix: @@ -19,6 +23,11 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: cpp + - name: Setup Dependencies run: | sudo apt-get update @@ -127,7 +136,6 @@ jobs: sed -i "s|build_${{matrix.build_type}}/glog/${name_we}.h|${file}|g" build_${{matrix.build_type}}/coverage.xml done - - name: Upload Coverage to Codecov if: matrix.build_type == 'Debug' uses: codecov/codecov-action@v3 @@ -136,3 +144,8 @@ jobs: files: build_${{matrix.build_type}}/coverage.xml fail_ci_if_error: true verbose: true + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: language:cpp