Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ jobs:
execute_process(COMMAND sudo apt-get install wget)
- name: Download Coverity Build Tool
run: |
wget -q https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=cycfi%2Felements" -O cov-analysis-linux64.tar.gz
# -S prints the server's HTTP response headers so failures (bad token,
# quota exceeded, server error) are visible instead of a bare exit code.
wget -S https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=cycfi%2Felements" -O cov-analysis-linux64.tar.gz
# Coverity returns an HTML/text error page (HTTP 200) on a bad token, so
# verify we actually got a gzip archive before trying to unpack it.
if ! file cov-analysis-linux64.tar.gz | grep -q gzip; then
echo "::error::Coverity did not return a gzip archive. Server response:"
cat cov-analysis-linux64.tar.gz
exit 1
fi
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
Expand Down
Loading