2021-11-14 12:37:54 +03:00
---
# vi: ts=2 sw=2 et:
# SPDX-License-Identifier: LGPL-2.1-or-later
#
2021-11-11 02:02:05 +03:00
name : "CodeQL"
on :
2021-11-16 13:46:16 +03:00
pull_request :
branches : [ main]
2021-12-07 14:18:06 +03:00
paths :
- .github/codeql-config.yml
- .github/codeql-custom.qls
- .github/workflows/codeql-analysis.yml
2021-11-11 02:02:05 +03:00
# It takes the workflow approximately 30 minutes to analyze the code base
# so it doesn't seem to make much sense to trigger it on every PR or commit.
# It runs daily at 01:00 to avoid colliding with the Coverity workflow.
schedule :
- cron : '0 1 * * *'
2021-11-14 12:41:42 +03:00
permissions :
contents : read
2021-11-11 02:02:05 +03:00
jobs :
analyze :
name : Analyze
runs-on : ubuntu-latest
concurrency :
group : ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
cancel-in-progress : true
permissions :
actions : read
security-events : write
strategy :
fail-fast : false
matrix :
language : [ 'cpp' , 'python' ]
steps :
- name : Checkout repository
2021-11-13 12:36:24 +03:00
uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
2021-11-11 02:02:05 +03:00
- name : Initialize CodeQL
2021-12-13 12:16:01 +03:00
uses : github/codeql-action/init@5f532563584d71fdef14ee64d17bafb34f751ce5
2021-11-11 02:02:05 +03:00
with :
languages : ${{ matrix.language }}
2021-12-07 14:06:29 +03:00
config-file : ./.github/codeql-config.yml
2021-11-11 02:02:05 +03:00
- run : sudo -E .github/workflows/unit_tests.sh SETUP
- name : Autobuild
2021-12-13 12:16:01 +03:00
uses : github/codeql-action/autobuild@5f532563584d71fdef14ee64d17bafb34f751ce5
2021-11-11 02:02:05 +03:00
- name : Perform CodeQL Analysis
2021-12-13 12:16:01 +03:00
uses : github/codeql-action/analyze@5f532563584d71fdef14ee64d17bafb34f751ce5