From 1c6eb76deea334e0c25805b9cec54ffff04193de Mon Sep 17 00:00:00 2001 From: tony-josi-aws Date: Mon, 23 Oct 2023 09:55:44 +0530 Subject: [PATCH] add CI checks for coverity --- .github/workflows/coverity_scan.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverity_scan.yml b/.github/workflows/coverity_scan.yml index f7fda4cdeec..d32c9e3e36c 100644 --- a/.github/workflows/coverity_scan.yml +++ b/.github/workflows/coverity_scan.yml @@ -44,9 +44,10 @@ jobs: export PATH="$PATH:${{env.cov_scan_path}}" cov-build --dir cov-int make -j tar czvf gcc_posix_fr_kernel.tgz cov-int - curl --form token=${COVERITY_TOKEN} \ + COV_SCAN_UPLOAD_STATUS = $(curl --form token=${COVERITY_TOKEN} \ --form email=tonyjosinew@gmail.com \ --form file=@gcc_posix_fr_kernel.tgz \ --form version="Mainline" \ --form description="GCC Posix Demo" \ - https://scan.coverity.com/builds?project=FreeRTOS-Kernel \ No newline at end of file + https://scan.coverity.com/builds?project=FreeRTOS-Kernel) + echo "${COV_SCAN_UPLOAD_STATUS}" | grep -q -e 'Build successfully submitted' || echo >&2 "Error submitting build for analysis: ${COV_SCAN_UPLOAD_STATUS}"