Skip to content

Commit

Permalink
action.yml: extra gh2slack fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Mar 2, 2024
1 parent a220ac8 commit fc0105b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ runs:
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
ACTOR: ${{ github.actor }}
GH_TO_SLACK_USER_MAP: ${{ inputs.gh_to_slack_user_map }}
with:
script: |
let actor = process.env.ACTOR.toLowerCase();
Expand All @@ -631,7 +632,7 @@ runs:
with:
slack_token: ${{ inputs.slack_token }}
message: |
[semgrep] @${{ 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) }}
[semgrep] ${{ 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) }}
channel: secops-hotspots
color: red
verbose: true
Expand Down

0 comments on commit fc0105b

Please sign in to comment.