From 3313b18f14556324ac50d2a9eca621e345595419 Mon Sep 17 00:00:00 2001 From: Alexander Amiri Date: Mon, 16 Mar 2026 23:24:56 +0100 Subject: [PATCH] Trigger Slack alert on FAILED risk (Bedrock unavailable), not just HIGH --- .github/workflows/platform-ci.yml | 4 ++-- .github/workflows/tf-plan.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/platform-ci.yml b/.github/workflows/platform-ci.yml index 88ea87a..a967d2c 100644 --- a/.github/workflows/platform-ci.yml +++ b/.github/workflows/platform-ci.yml @@ -129,8 +129,8 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} run: sh scripts/post-plan-comment.sh "${{ env.TF_ROOT }}/plan-output.txt" "${{ steps.plan.outputs.has_changes }}" - - name: Post HIGH risk to Slack - if: steps.review.outputs.risk_level == 'HIGH' && github.ref == 'refs/heads/main' + - name: Post blocked risk to Slack + if: (steps.review.outputs.risk_level == 'HIGH' || steps.review.outputs.risk_level == 'FAILED') && github.ref == 'refs/heads/main' run: sh scripts/notify-high-risk.sh /javabin/slack/platform-override-alerts-webhook "https://github.com/javaBin/platform/actions/workflows/approve-override.yml" # -------------------------------------------------------------------------- diff --git a/.github/workflows/tf-plan.yml b/.github/workflows/tf-plan.yml index 004a669..23d172f 100644 --- a/.github/workflows/tf-plan.yml +++ b/.github/workflows/tf-plan.yml @@ -135,6 +135,6 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} run: sh .platform/scripts/post-plan-comment.sh "${{ inputs.tf_root }}/plan-output.txt" "${{ steps.plan.outputs.has_changes }}" - - name: Alert Slack on HIGH risk - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.review.outputs.risk_level == 'HIGH' + - name: Alert Slack on blocked risk + if: github.event_name == 'push' && github.ref == 'refs/heads/main' && (steps.review.outputs.risk_level == 'HIGH' || steps.review.outputs.risk_level == 'FAILED') run: sh .platform/scripts/notify-high-risk.sh /javabin/slack/platform-override-alerts-webhook "https://github.com/javaBin/platform/actions/workflows/approve-override.yml"