step-security/action-slack
You can notify slack of GitHub Actions.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| status | Specify success or failure or cancelled or custom. | yes | — |
| fields | You can choose the items you want to add to the fields at the time of notification. If you have more than one, please enter it in csv format. e.g. commit,repo | no | "" |
| custom_payload | json payload refs https://github.com/slackapi/node-slack-sdk/blob/v5.0.0/packages/webhook/src/IncomingWebhook.ts#L91-L106) | no | — |
| mention | Specify channel or here or `user_id`. refs: https://api.slack.com/reference/surfaces/formatting#mentioning-users | no | "" |
| if_mention | Specify success or failure or cancelled or custom or always. Multiple statuses can be specified in csv format. e.g. success,failure | no | "" |
| author_name | User name for slack notification. | no | step-security@action-slack |
| text | You can overwrite text. | no | "" |
| username | override the legacy integration's default name. | no | "" |
| icon_emoji | an emoji code string to use in place of the default icon. | no | "" |
| icon_url | an icon image URL string to use in place of the default icon. | no | "" |
| channel | override the legacy integration's default channel. This should be an ID, such as C8UJ12P4P. | no | "" |
| job_name | Use this if you want to overwrite the job name. | no | "" |
| success_message | Message to use when the status is 'success'. | no | :white_check_mark: Succeeded GitHub Actions |
| cancelled_message | Message to use when the status is 'cancelled'. | no | :warning: Cancelled GitHub Actions |
| failure_message | Message to use when the status is 'failure'. | no | :no_entry: Failed GitHub Actions |
| github_token | Use this if you wish to use a different GitHub token than the one provided by the workflow. | no | ${{ github.token }} |
| github_base_url | Specify if you want to use GitHub Enterprise. | no | "" |
Outputs
no outputs