-
Notifications
You must be signed in to change notification settings - Fork 283
48 lines (40 loc) · 1.52 KB
/
codeql-analysis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Code Analysis'
on:
push:
branches: [ 'master', 'release/*' ]
# There's no actual source code to examine in the following directories.
paths-ignore: [ 'distribution/**', 'doc/**', 'source-doc/**', 'tools/**' ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ 'master', 'release/*' ]
# There's no actual source code to examine in the following directories.
paths-ignore: [ 'distribution/**', 'doc/**', 'source-doc/**', 'tools/**' ]
jobs:
analyze:
name: 'Analyze'
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: 'Check out Repository'
uses: actions/checkout@v2
- name: 'Initialize CodeQL'
uses: github/codeql-action/init@v1
with:
languages: cpp
# Comment out the following to perform just the bare minimum of checks:
queries: security-extended
# Use the following instead to perform the whole suite of pre-defined checks:
# queries: security-and-quality
- name: 'Install Prerequisites'
uses: POV-Ray/povray/.github/actions/unix_getlibs@gh-actions-v1
- name: 'Prebuild'
uses: POV-Ray/povray/.github/actions/unix_prebuild@gh-actions-v1
- name: 'Configure'
uses: POV-Ray/povray/.github/actions/unix_configure@gh-actions-v1
- name: 'Build'
uses: POV-Ray/povray/.github/actions/unix_make@gh-actions-v1
- name: 'Perform CodeQL Analysis'
uses: github/codeql-action/analyze@v1