1 |
commit: 6e4bb601f5b03660a2064b9acb5cbf4965e5189e |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 5 02:27:23 2021 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 5 03:20:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=6e4bb601 |
7 |
|
8 |
switch to Coverity Scan GH action |
9 |
|
10 |
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org> |
11 |
|
12 |
.github/workflows/coverity.yml | 36 +++++------------------------------- |
13 |
1 file changed, 5 insertions(+), 31 deletions(-) |
14 |
|
15 |
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml |
16 |
index 0cdfec2..f8ae34b 100644 |
17 |
--- a/.github/workflows/coverity.yml |
18 |
+++ b/.github/workflows/coverity.yml |
19 |
@@ -16,37 +16,11 @@ jobs: |
20 |
cc: [gcc] |
21 |
runs-on: ${{ matrix.os }} |
22 |
env: |
23 |
- COVERITY_EMAIL: vapier@g.o |
24 |
- COVERITY_PROJECT: gentoo%2Fpax-utils |
25 |
CC: ${{ matrix.cc }} |
26 |
steps: |
27 |
- uses: actions/checkout@v2 |
28 |
- |
29 |
- - name: Download Coverity Build Tool |
30 |
- run: | |
31 |
- wget -nv https://scan.coverity.com/download/cxx/linux64 \ |
32 |
- --post-data "token=${TOKEN}&project=${COVERITY_PROJECT}" \ |
33 |
- -O cov-analysis-linux64.tar.gz |
34 |
- mkdir cov-analysis |
35 |
- tar -xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis |
36 |
- env: |
37 |
- TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
38 |
- |
39 |
- - name: Build with cov-build |
40 |
- run: | |
41 |
- export PATH="${PWD}/cov-analysis/bin:${PATH}" |
42 |
- cov-build --dir cov-int make |
43 |
- |
44 |
- - name: Submit the result to Coverity Scan |
45 |
- run: | |
46 |
- tar -czvf cov-int.tgz cov-int |
47 |
- curl \ |
48 |
- --form project="${COVERITY_PROJECT}" \ |
49 |
- --form token="${TOKEN}" \ |
50 |
- --form email="${COVERITY_EMAIL}" \ |
51 |
- --form file=@cov-int.tgz \ |
52 |
- --form version="${GITHUB_SHA}" \ |
53 |
- --form description="pax-utils git" \ |
54 |
- "https://scan.coverity.com/builds?project=${COVERITY_PROJECT}" |
55 |
- env: |
56 |
- TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
57 |
+ - uses: vapier/coverity-scan-action@v0 |
58 |
+ with: |
59 |
+ project: gentoo%2Fpax-utils |
60 |
+ email: vapier@g.o |
61 |
+ token: ${{ secrets.COVERITY_SCAN_TOKEN }} |