diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index 9c7245d2..b08e3c0a 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -74,9 +74,9 @@ jobs: uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 if: steps.json.outputs.high != '0' || steps.json.outputs.medium != '0' with: - channel-id: probation-integration-notifications payload: | { + "channel": "probation-integration-notifications", "blocks": [ { "type": "section", @@ -117,16 +117,15 @@ jobs: } ] } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + token: ${{ secrets.SLACK_BOT_TOKEN }} - name: Send failure message to Slack uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0 if: failure() with: - channel-id: probation-integration-notifications payload: | { + "channel": "probation-integration-notifications", "blocks": [ { "type": "section", @@ -150,5 +149,4 @@ jobs: } ] } - env: - SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + token: ${{ secrets.SLACK_BOT_TOKEN }}