Skip to content

Commit

Permalink
Update Slack action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Dec 5, 2024
1 parent f29e961 commit 21dbdee
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -150,5 +149,4 @@ jobs:
}
]
}
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
token: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 21dbdee

Please sign in to comment.