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 c500923 commit 606ed8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/securityAlertsReview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Build the comment body
COMMENT_BODY="### πŸ€– GitHub Action: Security Alerts Review πŸ”\n"
# Build the comment body using $'…' so that \n becomes an actual newline
COMMENT_BODY=$'### πŸ€– GitHub Action: Security Alerts Review πŸ”\n'
# Unresolved Alerts
if [[ "$UNRESOLVED_COUNT" -gt 0 ]]; then
COMMENT_BODY+="\n## 🚨 Unresolved Security Alerts\n"
COMMENT_BODY+=$'\n## 🚨 Unresolved Security Alerts\n'
COMMENT_BODY+="These **must be resolved** before merging:\n\n"
while IFS= read -r row; do
ALERT_URL=$(echo "$row" | jq -r '.html_url')
Expand All @@ -84,7 +84,7 @@ jobs:
# Dismissed Alerts With Comments (including DISMISS_REASON)
if [[ "$DISMISSED_WITH_COMMENTS_COUNT" -gt 0 ]]; then
COMMENT_BODY+="\n## βœ… Dismissed Alerts with Explanations\n"
COMMENT_BODY+=$'\n## βœ… Dismissed Alerts with Explanations\n'
COMMENT_BODY+="The following alerts were dismissed with valid reasons:\n\n"
while IFS= read -r row; do
ALERT_URL=$(echo "$row" | jq -r '.html_url')
Expand All @@ -105,7 +105,7 @@ jobs:
# Dismissed Alerts Without Comments
if [[ "$DISMISSED_WITHOUT_COMMENTS_COUNT" -gt 0 ]]; then
COMMENT_BODY+="\n## ⚠️ Dismissed Alerts Without Comments\n"
COMMENT_BODY+=$'\n## ⚠️ Dismissed Alerts Without Comments\n'
COMMENT_BODY+="The following alerts were dismissed without explanations:\n\n"
while IFS= read -r row; do
ALERT_URL=$(echo "$row" | jq -r '.html_url')
Expand Down

0 comments on commit 606ed8c

Please sign in to comment.