diff options
author | Artem Naluzhnyy <A.Naluzhnyy@samsung.com> | 2019-06-11 17:19:40 +0200 |
---|---|---|
committer | Jessica Wagantall <jwagantall@linuxfoundation.org> | 2019-06-12 00:49:56 +0000 |
commit | 450f6c6cef081827d2a6cbdac440bee21f0b6c5a (patch) | |
tree | a0de9c38136c7decc3c5aea3a010a1a7bdd9dd7b | |
parent | 373fc1cf7f2cac4fd87347983a205a924d491e80 (diff) |
Validate downloaded Coverity tool checksum
Issue-ID: CIMAN-260
Signed-off-by: Artem Naluzhnyy <A.Naluzhnyy@samsung.com>
Change-Id: I73dae5c4c5bd3dd73957809b4265009b529ebca0
-rw-r--r-- | shell/maven-coverity.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/maven-coverity.sh b/shell/maven-coverity.sh index 76ba4239f..e319b06d9 100644 --- a/shell/maven-coverity.sh +++ b/shell/maven-coverity.sh @@ -57,6 +57,20 @@ curl \ --output 'coverity_tool.tgz' \ 'https://scan.coverity.com/download/linux64' +curl \ + --verbose \ + --silent \ + --show-error \ + --fail \ + --form "project=${COVERITY_PROJECT_NAME}" \ + --form "token=${COVERITY_TOKEN}" \ + --form 'md5=1' \ + --output 'coverity_tool.md5' \ + 'https://scan.coverity.com/download/linux64' + +echo -n ' coverity_tool.tgz' >> 'coverity_tool.md5' +md5sum --check 'coverity_tool.md5' + tar \ --extract \ --gunzip \ |