We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb9c347 commit 8135c1aCopy full SHA for 8135c1a
.github/workflows/reusable-build-docs.yaml
@@ -111,10 +111,18 @@ jobs:
111
run: echo "TX_ID=$(date +%s)" >> "${GITHUB_ENV}"
112
113
- name: Notify the DaWGs in Matrix
114
- # FAIL_MESSAGE is trusted input so okay to inject here.
115
- # zizmor: ignore[template-injection]
116
run: |
+ body="$(python3 -c '
+ import json
117
+ import os
118
+ import sys
119
+
120
+ json.dump({
121
+ "msgtype": "m.text",
122
+ "body": os.environ["FAIL_MESSAGE"],
123
+ }, sys.stdout)'
124
+ )"
125
curl -X PUT "${ROOM_URL}/${TX_ID}" \
126
-H "Authorization: Bearer ${{ secrets.DOCS_BOT_TOKEN }}" \
127
-H "Content-Type: application/json" \
- -d '{"msgtype": "m.text", "body": "${{ env.FAIL_MESSAGE }}"}'
128
+ -d "${body}"
0 commit comments