blob: 6b9db0349241b836c91261f4fdca8057afdc4e94 [file] [log] [blame]
Bram Moolenaarfa79be62020-10-02 10:29:45 +02001# For most projects, this workflow file will not need changing; you simply need
2# to commit it to your repository.
3#
4# You may wish to alter this file to override the set of languages analyzed,
5# or to provide custom queries or build logic.
6name: "CodeQL"
7
8on:
9 push:
10 branches: [master]
11 pull_request:
12 # The branches below must be a subset of the branches above
13 branches: [master]
14 schedule:
15 - cron: '0 18 * * 1'
16
Yegappan Lakshmanan7f4a6282021-12-25 11:20:30 +000017# Cancels all previous workflow runs for pull requests that have not completed.
18concurrency:
19 # The concurrency group contains the workflow name and the branch name for
20 # pull requests or the commit hash for any other events.
21 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
22 cancel-in-progress: true
23
Bram Moolenaarfa79be62020-10-02 10:29:45 +020024jobs:
25 analyze:
26 name: Analyze
27 runs-on: ubuntu-latest
28
29 strategy:
30 fail-fast: false
31 matrix:
32 # Override automatic language detection by changing the below list
33 # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
34 language: ['cpp', 'python']
35 # Learn more...
36 # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
37
38 steps:
39 - name: Checkout repository
Philip H8a83ffd2022-05-20 17:19:06 +010040 uses: actions/checkout@v3
Bram Moolenaarfa79be62020-10-02 10:29:45 +020041
Bram Moolenaarfa79be62020-10-02 10:29:45 +020042 # Initializes the CodeQL tools for scanning.
43 - name: Initialize CodeQL
Philip H8a83ffd2022-05-20 17:19:06 +010044 uses: github/codeql-action/init@v2
Bram Moolenaarfa79be62020-10-02 10:29:45 +020045 with:
46 languages: ${{ matrix.language }}
47 # If you wish to specify custom queries, you can do so here or in a config file.
Bram Moolenaar89a9c152021-08-29 21:55:35 +020048 # By default, queries listed here will override any specified in a config file.
Bram Moolenaarfa79be62020-10-02 10:29:45 +020049 # Prefix the list here with "+" to use these queries and those in the config file.
50 # queries: ./path/to/local/query, your-org/your-repo/queries@main
51
52 # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
53 # If this step fails, then you should remove it and run the build manually (see below)
54 - name: Autobuild
Philip H8a83ffd2022-05-20 17:19:06 +010055 uses: github/codeql-action/autobuild@v2
Bram Moolenaarfa79be62020-10-02 10:29:45 +020056
57 # â„šī¸ Command-line programs to run using the OS shell.
58 # 📚 https://git.io/JvXDl
59
60 # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines
61 # and modify them (or add more) to build your code if your project
62 # uses a compiled language
63
64 #- run: |
65 # make bootstrap
66 # make release
67
68 - name: Perform CodeQL Analysis
Philip H8a83ffd2022-05-20 17:19:06 +010069 uses: github/codeql-action/analyze@v2