Skip to content

Commit e265f63

Browse files
committed
Coverity scan using action
1 parent a4c08e9 commit e265f63

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

.github/workflows/coverity.yml

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
CC: gcc
3939
CXX: g++
4040
MAKEFLAGS: j4
41-
TOKEN: qjcM1CWLcq9PJB3yL0ZXIw
41+
COVERITY_TOKEN: qjcM1CWLcq9PJB3yL0ZXIw
4242
steps:
4343
- name: Checkout
4444
uses: actions/checkout@v3
@@ -55,26 +55,9 @@ jobs:
5555
- name: Configure
5656
run: cmake -Bbuild -DDOWNLOAD_GTEST=OFF
5757

58-
- name: Download Coverity
59-
run: |
60-
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=$GITHUB_REPOSITORY" -O cov-analysis-linux64.tar.gz
61-
mkdir cov-analysis-linux64
62-
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
63-
64-
- name: Build
65-
run: |
66-
set -x
67-
export PATH="$PWD/cov-analysis-linux64/bin:$PATH"
68-
cov-build --dir cov-int cmake --build build
69-
70-
- name: Submit
71-
run: |
72-
tar czvf results.tgz cov-int
73-
curl \
74-
--form project=$GITHUB_REPOSITORY \
75-
--form token=$TOKEN \
76-
--form email=m.samsonov@computer.org \
77-
--form file=@results.tgz \
78-
--form version=$GITHUB_REF \
79-
--form description=$GITHUB_SHA \
80-
https://scan.coverity.com/builds?project=$GITHUB_REPOSITORY
58+
- name: Coverity Scan
59+
uses: vapier/coverity-scan-action@v1
60+
with:
61+
email: maxirmx@sw.consulting
62+
token: ${{ env.COVERITY_TOKEN }}
63+
command: cmake --build build

0 commit comments

Comments
 (0)