Skip to content

Commit 1208926

Browse files
committed
Fix potential shell command injection
1 parent d5a665c commit 1208926

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/on-issue-comment.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ jobs:
1010
permissions: write-all
1111
steps:
1212
- name: Delete comment
13-
run: |
14-
echo " ${{ github.event.comment.body }} "
15-
- uses: actions-cool/issues-helper@v3
13+
uses: actions-cool/issues-helper@v3
1614
with:
1715
actions: 'delete-comment'
1816
token: ${{ secrets.GITHUB_TOKEN }}
19-
comment-id: ${{ github.event.comment.id }}
17+
comment-id: ${{ github.event.comment.id }}
18+
env:
19+
BODY: ${{ github.event.comment.body }}
20+
run: |
21+
echo " $BODY "

0 commit comments

Comments
 (0)