File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -348,3 +348,32 @@ jobs:
348348 run : source/ci/coverity.sh
349349 env :
350350 COVERITY_TOKEN : ${{ secrets.coverity_token }}
351+
352+ codeql :
353+ # Only run scheduled workflows on the main repository; prevents people
354+ # from using build minutes on their forks.
355+ if : github.repository == 'libgit2/libgit2'
356+
357+ name : CodeQL
358+ runs-on : ubuntu-latest
359+ steps :
360+ - name : Check out repository
361+ uses : actions/checkout@v2
362+ with :
363+ fetch-depth : 0
364+
365+ # Initializes the CodeQL tools for scanning.
366+ - name : Initialize CodeQL
367+ uses : github/codeql-action/init@v1
368+ with :
369+ languages : ' cpp'
370+
371+ - name : Build
372+ run : |
373+ mkdir build
374+ cd build
375+ cmake .. -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON
376+ cmake --build .
377+
378+ - name : Perform CodeQL Analysis
379+ uses : github/codeql-action/analyze@v1
You can’t perform that action at this time.
0 commit comments