-
Notifications
You must be signed in to change notification settings - Fork 34
67 lines (60 loc) · 1.8 KB
/
coverity.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#
# EFI Boot Guard
#
# Copyright (c) Siemens AG, 2021-2023
#
# Authors:
# Claudius Heine <[email protected]>
# Jan Kiszka <[email protected]>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
# SPDX-License-Identifier: GPL-2.0
#
name: Coverity Scan
on:
push:
branches:
- coverity_scan
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install amd64 dependencies
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends \
autoconf-archive gcc-multilib gnu-efi libz-dev libpci-dev check
- name: Install Coverity
run: |
wget https://scan.coverity.com/download/cxx/linux64 \
--post-data "token=$COVERITY_TOKEN&project=siemens%2Fefibootguard" \
-O coverity_tool.tar.gz
tar -xf coverity_tool.tar.gz
- name: Prepare build
run: |
autoreconf -fi
mkdir -p build
- name: Build for Coverity
run: |
cd build
../configure
../cov-analysis-linux64-*/bin/cov-build --dir cov-int make -j $(nproc)
- name: Submit Coverity results
run: |
cd build
tar caf ebg-scan.tar.bz2 cov-int
curl --form token=$COVERITY_TOKEN \
--form email=$COVERITY_EMAIL \
--form [email protected] \
--form version="${{ github.sha }}" \
--form description="EFI Boot Guard Coverity Scan" \
https://scan.coverity.com/builds?project=siemens%2Fefibootguard
env:
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
COVERITY_EMAIL: ${{ secrets.COVERITY_EMAIL }}