Skip to content

Commit 69c1fe0

Browse files
committed
actions: move CodeQL workflow into nightly
1 parent e72af29 commit 69c1fe0

2 files changed

Lines changed: 29 additions & 40 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)