forked from performancecopilot/pcp
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.15 KB
/
coverity.yml
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
name: "Coverity"
on:
schedule:
- cron: '0 1 * * *'
jobs:
analyze:
name: Analyze
if: github.repository == 'performancecopilot/pcp'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Download Coverity
run: |
cd ..
wget -q https://scan.coverity.com/download/linux64 --post-data "token=${TOKEN}&project=performancecopilot/pcp" -O coverity_tool.tgz
mkdir coverity
tar xzf coverity_tool.tgz --strip 1 -C coverity
echo "$(pwd)/coverity/bin" >> $GITHUB_PATH
env:
TOKEN: ${{ secrets.COVERITY_TOKEN }}
- name: Configure
run: ./configure
- name: Build with Coverity
run: cov-build --dir cov-int make
- name: Submit the result to Coverity
run: |
tar czvf pcp.tgz cov-int
curl \
--form token=${TOKEN} \
--form email=nathans@redhat.com \
--form file=@pcp.tgz \
--form version=${GITHUB_SHA} \
https://scan.coverity.com/builds?project=performancecopilot/pcp
env:
TOKEN: ${{ secrets.COVERITY_TOKEN }}