Skip to content

Commit d50f107

Browse files
committed
Add CodeQL analysis as CI task
YAML configuration based on GitHub's auto-generated configuration file.
1 parent dae6c09 commit d50f107

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
analyze:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
language: [ 'cpp', 'java', 'javascript', 'python' ]
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
with:
27+
submodules: recursive
28+
29+
# Initializes the CodeQL tools for scanning.
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v1
32+
with:
33+
languages: ${{ matrix.language }}
34+
# If you wish to specify custom queries, you can do so here or in a config file.
35+
# By default, queries listed here will override any specified in a config file.
36+
# Prefix the list here with "+" to use these queries and those in the config file.
37+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
38+
39+
- run: |
40+
sudo apt-get update
41+
sudo apt-get install --no-install-recommends -yq maven flex bison
42+
make -C src minisat2-download
43+
make -C src -j2
44+
make -C unit -j2
45+
make -C jbmc/src -j2
46+
make -C jbmc/unit -j2
47+
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)