Securely use credentials in listeners
SLACK_TOKEN
with a value, allowing you to communicate with a Slack bot each time a custom action is triggered.
For complete examples of secure credential management, see the Authentication Examples guide.
event.secrets
call to pull a sensitive Slack token for use within a listener context. We then can use the credential to post a message to Slack.
options
parameter for the secrets fetch function allows optionally choosing a different Environment or Space than the event occurred within.