Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
mirooon committed Feb 17, 2025
1 parent 1a45278 commit 1602068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/securityAlertsReview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ jobs:
if [[ -n "$EXISTING_COMMENT_ID" ]]; then
HTTP_RESPONSE=$(curl -s -o response.json -w "%{http_code}" -X PATCH \
-H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/json" \
--data "{\"body\": $COMMENT_BODY_JSON}"
--data "$(jq -n --arg body "$COMMENT_BODY" '{body: $body}')"
"https://api.github.com/repos/${{ github.repository }}/issues/comments/${EXISTING_COMMENT_ID}")
else
HTTP_RESPONSE=$(curl -s -o response.json -w "%{http_code}" -X POST \
-H "Authorization: token ${GITHUB_TOKEN}" -H "Content-Type: application/json" \
--data "{\"body\": $COMMENT_BODY_JSON}"
--data "$(jq -n --arg body "$COMMENT_BODY" '{body: $body}')"
"https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments")
fi
Expand Down

0 comments on commit 1602068

Please sign in to comment.