2022-10-27 19:36:17 +03:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
2024-09-24 19:02:01 +03:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-27 19:36:17 +03:00
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
2024-10-12 00:16:00 +03:00
|
|
|
runs-on: ubuntu-22.04
|
2022-10-27 19:36:17 +03:00
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'cpp', 'python' ]
|
|
|
|
|
|
|
|
steps:
|
2022-11-29 00:29:55 +03:00
|
|
|
- name: Set make jobs
|
|
|
|
run: |
|
|
|
|
echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV
|
|
|
|
|
2022-10-27 19:36:17 +03:00
|
|
|
- name: Checkout repository
|
2024-01-27 01:22:26 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-10-27 19:36:17 +03:00
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
2024-09-24 03:07:29 +03:00
|
|
|
uses: github/codeql-action/init@v3
|
2022-10-27 19:36:17 +03:00
|
|
|
with:
|
2024-01-27 01:11:33 +03:00
|
|
|
config-file: .github/codeql-${{ matrix.language }}.yml
|
2022-10-27 19:36:17 +03:00
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
- name: Autobuild
|
2024-09-24 03:07:29 +03:00
|
|
|
uses: github/codeql-action/autobuild@v3
|
2022-10-27 19:36:17 +03:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2024-09-24 03:07:29 +03:00
|
|
|
uses: github/codeql-action/analyze@v3
|
2022-10-27 19:36:17 +03:00
|
|
|
with:
|
|
|
|
category: "/language:${{matrix.language}}"
|