mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 14:55:37 +03:00
176086a2ec
Also, address https://github.com/systemd/systemd/pull/24252#issuecomment-1208747320 by using a pre-defined e-mail address stored in the GH Action secrets.
31 lines
881 B
YAML
31 lines
881 B
YAML
---
|
|
# vi: ts=2 sw=2 et:
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#
|
|
name: Coverity
|
|
|
|
on:
|
|
schedule:
|
|
# Run Coverity daily at midnight
|
|
- cron: '0 0 * * *'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
if: github.repository == 'systemd/systemd'
|
|
env:
|
|
# Set in repo settings -> secrets -> actions
|
|
COVERITY_SCAN_TOKEN: "${{ secrets.COVERITY_SCAN_TOKEN }}"
|
|
COVERITY_SCAN_NOTIFICATION_EMAIL: "${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }}"
|
|
steps:
|
|
- name: Repository checkout
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
# Reuse the setup phase of the unit test script to avoid code duplication
|
|
- name: Install build dependencies
|
|
run: sudo -E .github/workflows/unit_tests.sh SETUP
|
|
- name: Build & upload the results
|
|
run: tools/coverity.sh
|