Skip to content

Commit

Permalink
ci: verify coverity scan script before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
martanne committed Apr 20, 2021
1 parent c452759 commit bcde0a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/coverity-scan.yml
Expand Up @@ -24,9 +24,14 @@ jobs:
- name: Download Coverity Build Tool
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=martanne/vis" -O cov-analysis-linux64.tar.gz
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=martanne/vis" -O coverity_tool.tgz
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=martanne/vis&md5=1" -O coverity_tool.md5
if ! (cat coverity_tool.md5; echo " coverity_tool.tgz") | md5sum -c --status; then
echo "Download checksum verification failed"
exit 1
fi
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
tar xzf coverity_tool.tgz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}

Expand Down

0 comments on commit bcde0a7

Please sign in to comment.