Klaus Demo ~jonashaag/bjoern / master
Create codeql-analysis.yml (#192) Jonas Haag authored 29 days ago GitHub committed 29 days ago
1 changed file(s) with 73 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 # For most projects, this workflow file will not need changing; you simply need
1 # to commit it to your repository.
2 #
3 # You may wish to alter this file to override the set of languages analyzed,
4 # or to provide custom queries or build logic.
5 name: "CodeQL"
6
7 on:
8 push:
9 branches: [master]
10 pull_request:
11 # The branches below must be a subset of the branches above
12 branches: [master]
13 schedule:
14 - cron: '0 9 * * 0'
15
16 jobs:
17 analyze:
18 name: Analyze
19 runs-on: ubuntu-latest
20
21 strategy:
22 fail-fast: false
23 matrix:
24 # Override automatic language detection by changing the below list
25 # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
26 language: ['cpp', 'python']
27 # Learn more...
28 # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
29
30 steps:
31 - name: Checkout repository
32 uses: actions/checkout@v2
33 with:
34 # We must fetch at least the immediate parents so that if this is
35 # a pull request then we can checkout the head.
36 fetch-depth: 2
37
38 # If this run was triggered by a pull request event, then checkout
39 # the head of the pull request instead of the merge commit.
40 - run: git checkout HEAD^2
41 if: ${{ github.event_name == 'pull_request' }}
42
43 - run: git submodule update --init --recursive && sudo apt update && sudo apt install -y libev-dev
44
45 # Initializes the CodeQL tools for scanning.
46 - name: Initialize CodeQL
47 uses: github/codeql-action/init@v1
48 with:
49 languages: ${{ matrix.language }}
50 # If you wish to specify custom queries, you can do so here or in a config file.
51 # By default, queries listed here will override any specified in a config file.
52 # Prefix the list here with "+" to use these queries and those in the config file.
53 # queries: ./path/to/local/query, your-org/your-repo/queries@main
54
55 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
56 # If this step fails, then you should remove it and run the build manually (see below)
57 - name: Autobuild
58 uses: github/codeql-action/autobuild@v1
59
60 # ℹī¸ Command-line programs to run using the OS shell.
61 # 📚 https://git.io/JvXDl
62
63 # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines
64 # and modify them (or add more) to build your code if your project
65 # uses a compiled language
66
67 #- run: |
68 # make bootstrap
69 # make release
70
71 - name: Perform CodeQL Analysis
72 uses: github/codeql-action/analyze@v1