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 17:11:25 +00:00
|
|
|
branches:
|
2022-09-13 19:18:44 +00:00
|
|
|
- main
|
|
|
|
- v[0-9]+-stable
|
2022-09-13 19:30:10 +00:00
|
|
|
paths:
|
|
|
|
- '**/meson.build'
|
|
|
|
- '.github/**/codeql*'
|
|
|
|
- 'src/**'
|
|
|
|
- 'test/**'
|
|
|
|
- 'tools/**'
|
2022-09-13 19:18:44 +00:00
|
|
|
push:
|
|
|
|
branches:
|
2022-09-13 17:11:25 +00: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 14:03:14 +00: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 17:11:25 +00: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-01 09:19:02 +00:00
|
|
|
uses: github/codeql-action/init@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
|
2021-11-10 23:02:05 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
2021-12-07 11:06:29 +00: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-01 09:19:02 +00:00
|
|
|
uses: github/codeql-action/autobuild@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
|
2021-11-10 23:02:05 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2024-03-01 09:19:02 +00:00
|
|
|
uses: github/codeql-action/analyze@8a470fddafa5cbb6266ee11b37ef4d8aae19c571
|