Skip to content

Download the latest Coverity Scan client before performing the scan #85

Download the latest Coverity Scan client before performing the scan

Download the latest Coverity Scan client before performing the scan #85

Workflow file for this run

name: Coverity Scan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: configure
run: ./configure
- name: Install Coverity Scan
run: |
mkdir cov-analysis-linux64
wget https://scan.coverity.com/download/cxx/linux64 --post-data "token=${TOKEN}&project=${PROJECT}" -O cov-analysis-linux64.tar.gz
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
- name: Run Coverity Scan
run: |
make clean
cov-analysis-linux64/bin/cov-build --dir cov-int make
tar czvf MINISATIP.tgz cov-int
curl \
--form project=$PROJECT \
--form token=$(cat /etc/coverity) \
--form email='reply+AB6SAEPNLEJSCE2WJ37GDNF6TC2NXEVBNHHDIEHQTY@reply.github.com' \
--form [email protected] \
--form version=trunk \
--form description="`git log -1 --pretty=format:%h`" \
https://scan.coverity.com/builds?project=$PROJECT
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
PROJECT: minisatip2