summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeF2022-01-05 21:09:07 +0100
committerGitHub2022-01-05 21:09:07 +0100
commitf9a847bce02880bb067d70739775de488949b1a5 (patch)
treeb83382c73e7abe9f1232a86e11cb43c2196264dc
parentacb737ef367f61ee0c0d219ea7272abb56e68e34 (diff)
added codeql workflow
-rw-r--r--.github/workflows/codeql-analysis.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
new file mode 100644
index 0000000..7b3b6fd
--- /dev/null
+++ b/.github/workflows/codeql-analysis.yml
@@ -0,0 +1,45 @@
1name: "CodeQL"
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 # The branches below must be a subset of the branches above
8 branches: [ master ]
9 schedule:
10 - cron: '37 5 * * 3'
11
12jobs:
13 analyze:
14 name: Analyze
15 runs-on: ubuntu-latest
16 container: php:latest
17 permissions:
18 actions: read
19 contents: read
20 security-events: write
21
22 strategy:
23 fail-fast: false
24 matrix:
25 language: [ 'cpp' ]
26
27 steps:
28 - name: Checkout repository
29 uses: actions/checkout@v2
30
31 # Initializes the CodeQL tools for scanning.
32 - name: Initialize CodeQL
33 uses: github/codeql-action/init@v1
34 with:
35 languages: ${{ matrix.language }}
36 # If you wish to specify custom queries, you can do so here or in a config file.
37 # By default, queries listed here will override any specified in a config file.
38 # Prefix the list here with "+" to use these queries and those in the config file.
39 # queries: ./path/to/local/query, your-org/your-repo/queries@main
40
41 - run: |
42 make release
43
44 - name: Perform CodeQL Analysis
45 uses: github/codeql-action/analyze@v1