From a2a4485ed3050bcc2271688f0e253009be38751a Mon Sep 17 00:00:00 2001 From: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Date: Tue, 28 Nov 2023 19:16:15 +0530 Subject: [PATCH] Coverity Report Directory Fix (#909) * Revert "The curl command to send the report expects the tar file to be in its current directory. The step either needed to have the working-directory: set to the build directory, or the tar file needs to be created in the parent directory. (#903)" This reverts commit 76f3aa5b05e5c38e423e83eea23f5b34c15d3316. * Update to separate build and upload steps --------- Co-authored-by: tony-josi-aws --- .github/workflows/coverity_scan.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverity_scan.yml b/.github/workflows/coverity_scan.yml index 21e7359f6..85db51800 100644 --- a/.github/workflows/coverity_scan.yml +++ b/.github/workflows/coverity_scan.yml @@ -49,7 +49,7 @@ jobs: echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }} " - env: - stepName: Coverity Build & Upload for Scan + stepName: Coverity Build COVERITY_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} COVERITY_EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} shell: bash @@ -64,6 +64,18 @@ jobs: # Move the report out of the build directory tar czvf ../gcc_freertos_kernel_sample_build.tgz cov-int + echo "::endgroup::" + echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }} " + + - env: + stepName: Upload Coverity Report for Scan + COVERITY_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} + COVERITY_EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} + shell: bash + run: | + # ${{ env.stepName }} + echo -e "::group::${{ env.bashInfo }} ${{ env.stepName }} ${{ env.bashEnd }}" + COV_SCAN_UPLOAD_STATUS=$(curl --form token=${COVERITY_TOKEN} \ --form email=${COVERITY_EMAIL} \ --form file=@gcc_freertos_kernel_sample_build.tgz \