Skip to content

Commit 0ad4b7c

Browse files
avivkellermarco-ippolito
authored andcommitted
meta: use HTML entities in commit-queue comment
PR-URL: #53744 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8135f36 commit 0ad4b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/actions/commit-queue.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ commit_queue_failed() {
1919

2020
# shellcheck disable=SC2154
2121
cqurl="${GITHUB_SERVER_URL}/${OWNER}/${REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
22-
body="<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a href='$cqurl'>$cqurl</a></details>"
22+
body="<details><summary>Commit Queue failed</summary><pre>$(sed -e 's/&/\&amp;/g' -e 's/</\&lt;/g' -e 's/>/\&gt;/g' output)</pre><a href='$cqurl'>$cqurl</a></details>"
2323
echo "$body"
2424

2525
gh pr comment "$pr" --body "$body"

0 commit comments

Comments
 (0)