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
This commit is contained in:
Tiago Pascoal
2023-06-20 11:38:27 +01:00
committed by GitHub
parent 579c56c744
commit 150854603b

View File

@@ -7,4 +7,4 @@ jobs:
- env:
BODY: ${{ github.event.issue.body }}
run: |
echo '$BODY'
echo "$BODY"