diff --git a/.github/workflows/reusable-workflow-terraform.yml b/.github/workflows/reusable-workflow-terraform.yml index 5d6c5d9902..49d5ab1431 100644 --- a/.github/workflows/reusable-workflow-terraform.yml +++ b/.github/workflows/reusable-workflow-terraform.yml @@ -364,11 +364,10 @@ jobs: id: slack_notification uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 with: + webhook: ${{ env.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook payload: | { "run_id": "${{ github.run_id }}", "pr_number": "${{ steps.extract_pr.outputs.pr_number }}" } - env: - SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK