Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b604dad

Browse files
committedJun 5, 2025·
Revert back changes done for test
1 parent be13ec9 commit b604dad

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed
 

‎.github/workflows/coverity_scan.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
# Run on every commit to mainline
44
push:
55
branches: main
6-
pull_request:
7-
branches: main
86
# Allow manual running of the scan
97
workflow_dispatch:
108

@@ -44,10 +42,22 @@ jobs:
4442
# ${{ env.stepName }}
4543
echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}"
4644
47-
wget --verbose -O- https://scan.coverity.com/download/linux64 --post-data "token=${COVERITY_TOKEN}&project=FreeRTOS-Kernel" | tar -zx --one-top-level=cov_scan -C "$HOME"
48-
echo "cov_scan_path=$HOME/cov_scan/bin" >> $GITHUB_ENV
49-
echo "::endgroup::"
50-
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }} "
45+
wget -nv -q -O "$HOME/cov-analysis.tar.gz" https://scan.coverity.com/download/linux64 --post-data="token=${COVERITY_TOKEN}&project=FreeRTOS-Kernel"
46+
47+
EXPECTED_MD5="e4418004b073140d67390cffba79c3b2"
48+
GENERATED_MD5=$(md5sum "$HOME/cov-analysis.tar.gz" | awk '{print $1}')
49+
50+
if [ "$GENERATED_MD5" = "$EXPECTED_MD5" ]; then
51+
tar -zxf "$HOME/cov-analysis.tar.gz" --one-top-level=cov_scan -C "$HOME"
52+
echo "cov_scan_path=$HOME/cov_scan/bin" >> $GITHUB_ENV
53+
sudo rm -f "$HOME/cov-analysis.tar.gz"
54+
echo "::endgroup::"
55+
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }} "
56+
else
57+
echo -e "${{ env.bashFail }} MD5 checksum verification failed for cov-analysis.tar.gz ${{ env.bashEnd }}"
58+
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
59+
exit -1
60+
fi
5161
5262
- env:
5363
stepName: Coverity Build

0 commit comments

Comments
 (0)
Please sign in to comment.