Skip to content

Commit 530d37b

Browse files
authored
Merge pull request libgit2#5709 from libgit2/ethomson/codeql
ci: run codeql
2 parents 1865806 + 7d1c5d6 commit 530d37b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ master, maint/* ]
6+
pull_request:
7+
branches: [ master, maint/* ]
8+
schedule:
9+
- cron: '21 3 * * 1'
10+
11+
env:
12+
docker-registry: docker.pkg.github.com
13+
14+
jobs:
15+
analyze:
16+
name: Analyze
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Check out repository
21+
uses: actions/checkout@v2
22+
with:
23+
fetch-depth: 0
24+
25+
# Initializes the CodeQL tools for scanning.
26+
- name: Initialize CodeQL
27+
uses: github/codeql-action/init@v1
28+
with:
29+
languages: 'cpp'
30+
31+
- name: Build
32+
run: |
33+
mkdir build
34+
cd build
35+
cmake .. -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_BUNDLED_ZLIB=ON
36+
cmake --build .
37+
38+
- name: Perform CodeQL Analysis
39+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)