Skip to content

Commit

Permalink
Coverity scan using action
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jun 26, 2023
1 parent a4c08e9 commit e265f63
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
CC: gcc
CXX: g++
MAKEFLAGS: j4
TOKEN: qjcM1CWLcq9PJB3yL0ZXIw
COVERITY_TOKEN: qjcM1CWLcq9PJB3yL0ZXIw
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -55,26 +55,9 @@ jobs:
- name: Configure
run: cmake -Bbuild -DDOWNLOAD_GTEST=OFF

- name: Download Coverity
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=$GITHUB_REPOSITORY" -O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
- name: Build
run: |
set -x
export PATH="$PWD/cov-analysis-linux64/bin:$PATH"
cov-build --dir cov-int cmake --build build
- name: Submit
run: |
tar czvf results.tgz cov-int
curl \
--form project=$GITHUB_REPOSITORY \
--form token=$TOKEN \
--form email=m.samsonov@computer.org \
--form file=@results.tgz \
--form version=$GITHUB_REF \
--form description=$GITHUB_SHA \
https://scan.coverity.com/builds?project=$GITHUB_REPOSITORY
- name: Coverity Scan
uses: vapier/coverity-scan-action@v1
with:
email: maxirmx@sw.consulting
token: ${{ env.COVERITY_TOKEN }}
command: cmake --build build

0 comments on commit e265f63

Please sign in to comment.