summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-07-06 10:47:01 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-07-06 10:47:01 -0400
commit69c1fe0f568ff4638859f8b1d7d1f55227ccfc37 (patch)
treea04f1bb55dfa18fc53669077f3b0a5e55af21389 /.github
parente72af290f6f3ec3f99b11999e6918a1ad3471f0c (diff)
downloadlibgit2-69c1fe0f568ff4638859f8b1d7d1f55227ccfc37.tar.gz
actions: move CodeQL workflow into nightly
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql.yml40
-rw-r--r--.github/workflows/nightly.yml29
2 files changed, 29 insertions, 40 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
deleted file mode 100644
index 9b4615c21..000000000
--- a/.github/workflows/codeql.yml
+++ /dev/null
@@ -1,40 +0,0 @@
-name: "CodeQL"
-
-on:
- workflow_dispatch:
- schedule:
- - cron: '21 3 * * 1'
-
-env:
- docker-registry: ghcr.io
-
-jobs:
- analyze:
- # Only run scheduled workflows on the main repository; prevents people
- # from using build minutes on their forks.
- if: github.repository == 'libgit2/libgit2'
-
- name: Analyze
- runs-on: ubuntu-latest
-
- steps:
- - name: Check out repository
- uses: actions/checkout@v2
- with:
- fetch-depth: 0
-
- # Initializes the CodeQL tools for scanning.
- - name: Initialize CodeQL
- uses: github/codeql-action/init@v1
- with:
- languages: 'cpp'
-
- - name: Build
- run: |
- mkdir build
- cd build
- cmake .. -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON
- cmake --build .
-
- - name: Perform CodeQL Analysis
- uses: github/codeql-action/analyze@v1
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 73013821c..856da28a3 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -348,3 +348,32 @@ jobs:
run: source/ci/coverity.sh
env:
COVERITY_TOKEN: ${{ secrets.coverity_token }}
+
+ codeql:
+ # Only run scheduled workflows on the main repository; prevents people
+ # from using build minutes on their forks.
+ if: github.repository == 'libgit2/libgit2'
+
+ name: CodeQL
+ runs-on: ubuntu-latest
+ steps:
+ - name: Check out repository
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+
+ # Initializes the CodeQL tools for scanning.
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v1
+ with:
+ languages: 'cpp'
+
+ - name: Build
+ run: |
+ mkdir build
+ cd build
+ cmake .. -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON
+ cmake --build .
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v1