diff --git a/action.yml b/action.yml index d203c9d0..7f1019c6 100644 --- a/action.yml +++ b/action.yml @@ -350,7 +350,7 @@ runs: await sendSlackMessage({ slack_token: inputs.slack_token, - text: "[security-action] ${{ fromJson(steps.actor-slack.outputs.result) }} action failed, plz take a look. /cc ${{fromJson(steps.assignees-slack.outputs.result)}} ${{ fromJson(steps.reviewdog-fail-log-head.outputs.result) }", + text: "", message, channel: '#secops-hotspots', color: 'red', @@ -362,10 +362,10 @@ runs: const actionPath = '${{ github.action_path }}' const {default: sendSlackMessage} = await import(`${actionPath}/src/steps/sendSlackMessage.js`) const message = null - + await sendSlackMessage({ slack_token: inputs.slack_token, - text: "[semgrep] ${{ fromJson(steps.actor-slack.outputs.result) }} pushed commits. /cc ${{fromJson(steps.assignees-slack.outputs.result)}}", + text: "", message, channel: '#secops-hotspots', color: 'green',