diff --git a/.github/workflows/binary-ready-veracode-sast-pipeline-scan.yml b/.github/workflows/binary-ready-veracode-sast-pipeline-scan.yml index e65effec..c1ebe3a6 100644 --- a/.github/workflows/binary-ready-veracode-sast-pipeline-scan.yml +++ b/.github/workflows/binary-ready-veracode-sast-pipeline-scan.yml @@ -177,7 +177,7 @@ jobs: update-checks-status: runs-on: ${{ fromJSON(github.event.client_payload.user_config.default_runs_on) }} - needs: pipeline_scan + needs: [register, pipeline_scan] if: always() steps: - name: Update check @@ -197,7 +197,7 @@ jobs: success_count=$((success_count + 1)) echo '{"status": "completed", "conclusion": "success"}' > payload.txt elif [ "$status" = "failure" ]; then - if [ "$BREAK_BUILD_ON_ERROR" = "false" && "$BREAK_BUILD_ON_POLICY" = "false" ]; then + if [ "$BREAK_BUILD_ON_ERROR" = "false" ] && [ "$BREAK_BUILD_ON_POLICY" = "false" ]; then echo '{"status": "completed", "conclusion": "success"}' > payload.txt else echo '{"status": "completed", "conclusion": "failure"}' > payload.txt @@ -208,4 +208,4 @@ jobs: -H "Accept: application/vnd.github+json" \ https://api.github.com/repos/${{ github.event.client_payload.repository.owner }}/${{ github.event.client_payload.repository.name }}/check-runs/${{ needs.register.outputs.run_id }} \ -d @"payload.txt" - done \ No newline at end of file + done