diff --git a/action.cjs b/action.cjs index f2e7e269..48f699d9 100644 --- a/action.cjs +++ b/action.cjs @@ -191,7 +191,7 @@ module.exports = async ({ github, context, inputs, actionPath, core }) => { // send error slack message, if there is any error await sendSlackMessage({ - slack_token: inputs.slack_token, + token: inputs.slack_token, text: `[security-action] ${actor} action failed, plz take a look. /cc ${slackAssignees} ${reviewdogFailLogHead}`, message, channel: '#secops-hotspots', @@ -208,7 +208,7 @@ module.exports = async ({ github, context, inputs, actionPath, core }) => { if (inputs.slack_token && shouldTrigger) { // Send slack message, if there are any findings await sendSlackMessage({ - slack_token: inputs.slack_token, + token: inputs.slack_token, text: `[semgrep] ${actor} pushed commits. /cc ${slackAssignees}`, message, channel: '#secops-hotspots',