Learn how to securely use credentials in listeners.
SLACK_TOKEN
with a value of
xoxb-e5b7206ccac446048a8a52b703dbb4b9
, allowing you to communicate with a
Slack bot each time a custom action is triggered.
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.