2021-01-08 20:45:08 +00:00
|
|
|
---
|
|
|
|
# vi: ts=2 sw=2 et:
|
2021-10-01 10:10:22 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2021-01-08 20:45:08 +00:00
|
|
|
#
|
|
|
|
name: Coverity
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Run Coverity daily at midnight
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
2021-11-13 22:34:04 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2021-11-13 14:40:20 +00:00
|
|
|
|
2021-01-08 20:45:08 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-05-21 14:03:14 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2021-01-08 20:45:08 +00:00
|
|
|
if: github.repository == 'systemd/systemd'
|
|
|
|
env:
|
2022-08-09 12:43:28 +00:00
|
|
|
# Set in repo settings -> secrets -> actions
|
2021-01-08 20:45:08 +00:00
|
|
|
COVERITY_SCAN_TOKEN: "${{ secrets.COVERITY_SCAN_TOKEN }}"
|
2022-08-09 12:43:28 +00:00
|
|
|
COVERITY_SCAN_NOTIFICATION_EMAIL: "${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}"
|
2021-01-08 20:45:08 +00:00
|
|
|
steps:
|
|
|
|
- name: Repository checkout
|
2023-11-01 09:39:16 +00:00
|
|
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
2021-01-08 20:45:08 +00:00
|
|
|
# Reuse the setup phase of the unit test script to avoid code duplication
|
|
|
|
- name: Install build dependencies
|
2021-01-25 14:45:36 +00:00
|
|
|
run: sudo -E .github/workflows/unit_tests.sh SETUP
|
2022-08-09 12:43:28 +00:00
|
|
|
- name: Build & upload the results
|
|
|
|
run: tools/coverity.sh
|