Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/add_issues_to_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
# Build the payload with jq so titles containing quotes, backslashes,
# or other JSON-special characters are escaped correctly (a raw
# interpolated title broke the JSON -> Discord 50109). Passing the
# title/URL via env also avoids shell-injection from `${{ }}` in `run:`.
# title/URL via env (rather than inlining template expressions in the
# run block) also avoids shell injection from untrusted issue titles.
content="$(printf '<@&1510380634349109440>, Issue created for Garlemald Client.\nTitle: %s\n%s' "$ISSUE_TITLE" "$ISSUE_URL")"
jq -n --arg content "$content" '{content: $content}' \
| curl -sS -X POST "$DISCORD_WEBHOOK_URL" \
Expand Down
Loading