Skip to content

Commit 1508546

Browse files
authored
Single quote was preventing the shell from expanding the BODY variable
While this prevents the attack highlighted in the query help it also prevents it from working. Double quotes will allow the expansion of the variable while still preventing the attack
1 parent 579c56c commit 1508546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/Security/CWE-094/examples/comment_issue_good.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ jobs:
77
- env:
88
BODY: ${{ github.event.issue.body }}
99
run: |
10-
echo '$BODY'
10+
echo "$BODY"

0 commit comments

Comments
 (0)