Skip to content

Commit 80844bb

Browse files
fix(security): autofix Template Injection in GitHub Workflows Action (#14228)
Co-authored-by: aikido-autofix[bot] <119856028+aikido-autofix[bot]@users.noreply.github.com>
1 parent 5d41bb0 commit 80844bb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/on-pr-closed.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,16 @@ jobs:
2525
issue_number: ${{ steps.get_issue_number.outputs.ticketNumber }}
2626
steps:
2727
- name: echo PR data
28+
env:
29+
PR_NUMBER: ${{ github.event.pull_request.number }}
30+
PR_URL: ${{ github.event.pull_request.html_url }}
31+
PR_BODY: ${{ github.event.pull_request.body }}
2832
run: |
29-
echo "PR Number: ${{ github.event.pull_request.number }}"
30-
echo "PR URL: ${{ github.event.pull_request.html_url }}"
33+
echo "PR Number: $PR_NUMBER"
34+
echo "PR URL: $PR_URL"
3135
cat <<EOF
3236
PR Body:
33-
${{ github.event.pull_request.body }}
37+
$PR_BODY
3438
EOF
3539
- name: Determine issue number
3640
id: get_issue_number

0 commit comments

Comments
 (0)