diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/coverity.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/coverity.yaml b/.github/workflows/coverity.yaml new file mode 100644 index 0000000..5ea99c9 --- /dev/null +++ b/.github/workflows/coverity.yaml | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | name: Coverity scan | ||
| 2 | on: | ||
| 3 | schedule: | ||
| 4 | - cron: '0 18 * * 1' # Weekly at 18:00 UTC on Mondays | ||
| 5 | |||
| 6 | jobs: | ||
| 7 | latest: | ||
| 8 | runs-on: ubuntu-latest | ||
| 9 | container: debian:stable | ||
| 10 | steps: | ||
| 11 | - name: Checkout code | ||
| 12 | uses: actions/checkout@v3 | ||
| 13 | - name: Install dependencies | ||
| 14 | run: | | ||
| 15 | apt update | ||
| 16 | DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends php-dev curl ca-certificates make gcc | ||
| 17 | - name: Download Coverity Build Tool | ||
| 18 | run: | | ||
| 19 | curl https://scan.coverity.com/download/linux64 --form token=$TOKEN --form project=jvoisin/fortify-headers -o cov-analysis-linux64.tar.gz | ||
| 20 | mkdir cov-analysis-linux64 | ||
| 21 | tar xzf cov-analysis-linux64.tar.gz --strip-components=1 -C cov-analysis-linux64 | ||
| 22 | env: | ||
| 23 | TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
| 24 | - name: Build with cov-build | ||
| 25 | run: ./cov-analysis-linux64/bin/cov-build --dir cov-int make -C tests gcc | ||
| 26 | - name: Submit the result to Coverity Scan | ||
| 27 | run: | | ||
| 28 | tar czf fortify-headers.tgz cov-int | ||
| 29 | curl \ | ||
| 30 | --form project=jvoisin/fortify-headers \ | ||
| 31 | --form token=$TOKEN \ | ||
| 32 | --form file=@fortify-headers.tgz \ | ||
| 33 | --form version=master \ | ||
| 34 | --form email=julien.voisin+coverity@dustri.org \ | ||
| 35 | --form description=master \ | ||
| 36 | https://scan.coverity.com/builds?project=jvoisin/fortify-headers | ||
| 37 | env: | ||
| 38 | TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | ||
