Bram Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 1 | # 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. |
| 6 | name: "CodeQL" |
| 7 | |
| 8 | on: |
| 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 Lakshmanan | 7f4a628 | 2021-12-25 11:20:30 +0000 | [diff] [blame] | 17 | # Cancels all previous workflow runs for pull requests that have not completed. |
| 18 | concurrency: |
| 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 Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 24 | jobs: |
| 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: |
Philip H | bfaa24f | 2022-06-01 21:26:34 +0100 | [diff] [blame^] | 39 | - name: Checkout repository from github |
Philip H | 8a83ffd | 2022-05-20 17:19:06 +0100 | [diff] [blame] | 40 | uses: actions/checkout@v3 |
Bram Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 41 | |
Bram Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 42 | # Initializes the CodeQL tools for scanning. |
| 43 | - name: Initialize CodeQL |
Philip H | 8a83ffd | 2022-05-20 17:19:06 +0100 | [diff] [blame] | 44 | uses: github/codeql-action/init@v2 |
Bram Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 45 | with: |
| 46 | languages: ${{ matrix.language }} |
| 47 | # If you wish to specify custom queries, you can do so here or in a config file. |
Bram Moolenaar | 89a9c15 | 2021-08-29 21:55:35 +0200 | [diff] [blame] | 48 | # By default, queries listed here will override any specified in a config file. |
Bram Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 49 | # 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 H | 8a83ffd | 2022-05-20 17:19:06 +0100 | [diff] [blame] | 55 | uses: github/codeql-action/autobuild@v2 |
Bram Moolenaar | fa79be6 | 2020-10-02 10:29:45 +0200 | [diff] [blame] | 56 | |
| 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 H | 8a83ffd | 2022-05-20 17:19:06 +0100 | [diff] [blame] | 69 | uses: github/codeql-action/analyze@v2 |