Skip to content

Commit

Permalink
action.cjs: slack_token fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed May 25, 2024
1 parent 455150f commit b0a98d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit b0a98d3

Please sign in to comment.