We added the slack pipe integration and it was doing fine for a week or so. But then a build failed during the slack step.
The Slack pipe produces a malformed json to send over the Stack API. It fails to escape any double quotes character provided in the message.
The pipe should handle any input, and be able to produce a valid json payload.
- the version of the pipe
- relevant logs and error messages
- INFO: HTTP Response: invalid_payload
✖ Notification failed.
- steps to reproduce
script:
- MESSAGE="it doesn't escape the \" character"
- pipe: atlassian/slack-notify:0.2.1
variables:
WEBHOOK_URL: $WEBHOOK_URL
MESSAGE: "$MESSAGE"