2021-11-14 09:37:54 +00:00
---
# vi: ts=2 sw=2 et:
# SPDX-License-Identifier: LGPL-2.1-or-later
#
2021-11-10 23:02:05 +00:00
name : "CodeQL"
on :
2021-11-16 10:46:16 +00:00
pull_request :
2022-09-13 19:11:25 +02:00
branches :
2022-09-13 21:18:44 +02:00
- main
- v[0-9]+-stable
2022-09-13 21:30:10 +02:00
paths :
- '**/meson.build'
- '.github/**/codeql*'
- 'src/**'
- 'test/**'
- 'tools/**'
2022-09-13 21:18:44 +02:00
push :
branches :
2022-09-13 19:11:25 +02:00
- main
- v[0-9]+-stable
2021-11-10 23:02:05 +00:00
2021-11-14 09:41:42 +00:00
permissions :
contents : read
2021-11-10 23:02:05 +00:00
jobs :
analyze :
name : Analyze
2022-11-30 10:28:34 +00:00
if : github.repository != 'systemd/systemd-security'
2022-05-21 16:03:14 +02:00
runs-on : ubuntu-22.04
2021-11-10 23:02:05 +00:00
concurrency :
group : ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
cancel-in-progress : true
permissions :
actions : read
security-events : write
strategy :
fail-fast : false
matrix :
2022-09-13 19:11:25 +02:00
language : [ 'cpp' , 'python' ]
2021-11-10 23:02:05 +00:00
steps :
- name : Checkout repository
2024-03-13 16:48:43 +00:00
uses : actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
2021-11-10 23:02:05 +00:00
- name : Initialize CodeQL
2024-03-13 19:16:26 +00:00
uses : github/codeql-action/init@3ab4101902695724f9365a384f86c1074d94e18c
2021-11-10 23:02:05 +00:00
with :
languages : ${{ matrix.language }}
2021-12-07 12:06:29 +01:00
config-file : ./.github/codeql-config.yml
2021-11-10 23:02:05 +00:00
- run : sudo -E .github/workflows/unit_tests.sh SETUP
- name : Autobuild
2024-03-13 19:16:26 +00:00
uses : github/codeql-action/autobuild@3ab4101902695724f9365a384f86c1074d94e18c
2021-11-10 23:02:05 +00:00
- name : Perform CodeQL Analysis
2024-03-13 19:16:26 +00:00
uses : github/codeql-action/analyze@3ab4101902695724f9365a384f86c1074d94e18c