Commit 1c72b1a
ci: Escape new-pr.yml (#3117)
* fix: prevent script injection in new-pr.yml workflow
- Use toJSON() to escape user-provided PR body content
- Use toJSON() to escape github.actor username
- Properly quote variables in bash heredoc
- Fixes Wiz security alert for potential script injection
Co-authored-by: Michael Matloka <dev@twixes.com>
* Quotes not needed now
* The other content is safe
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent 8655261 commit 1c72b1a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments