Michal Vasko | e014cdb | 2022-12-05 10:43:12 +0100 | [diff] [blame] | 1 | name: "CodeQL" |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [ "master", "devel" ] |
| 6 | pull_request: |
| 7 | branches: [ "devel" ] |
Michal Vasko | e014cdb | 2022-12-05 10:43:12 +0100 | [diff] [blame] | 8 | |
| 9 | jobs: |
| 10 | analyze: |
| 11 | name: Analyze |
| 12 | runs-on: ubuntu-latest |
| 13 | permissions: |
| 14 | actions: read |
| 15 | contents: read |
| 16 | security-events: write |
| 17 | |
| 18 | strategy: |
| 19 | fail-fast: false |
| 20 | matrix: |
| 21 | language: [ cpp ] |
| 22 | |
| 23 | steps: |
| 24 | - name: Checkout |
Vincent JARDIN | b66f025 | 2024-03-20 14:03:30 +0100 | [diff] [blame^] | 25 | uses: actions/checkout@main |
Michal Vasko | e014cdb | 2022-12-05 10:43:12 +0100 | [diff] [blame] | 26 | |
| 27 | - name: Initialize CodeQL |
Vincent JARDIN | b66f025 | 2024-03-20 14:03:30 +0100 | [diff] [blame^] | 28 | uses: github/codeql-action/init@main |
Michal Vasko | e014cdb | 2022-12-05 10:43:12 +0100 | [diff] [blame] | 29 | with: |
| 30 | languages: ${{ matrix.language }} |
| 31 | queries: +security-and-quality |
| 32 | |
| 33 | - name: Autobuild |
Vincent JARDIN | b66f025 | 2024-03-20 14:03:30 +0100 | [diff] [blame^] | 34 | uses: github/codeql-action/autobuild@main |
Michal Vasko | e014cdb | 2022-12-05 10:43:12 +0100 | [diff] [blame] | 35 | |
| 36 | - name: Perform CodeQL Analysis |
Vincent JARDIN | b66f025 | 2024-03-20 14:03:30 +0100 | [diff] [blame^] | 37 | uses: github/codeql-action/analyze@main |
Michal Vasko | e014cdb | 2022-12-05 10:43:12 +0100 | [diff] [blame] | 38 | with: |
| 39 | category: "/language:${{ matrix.language }}" |