Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
done