Skip to content

Commit 0f7b1e7

Browse files
Potential fix for code scanning alert no. 3: Expression injection in Actions
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 1e56e19 commit 0f7b1e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/update-snapshots.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
ref: ${{ steps.comment-branch.outputs.head_ref }}
2121
- name: Extract URL from comment
2222
id: extract-url
23+
env:
24+
COMMENT: ${{ github.event.comment.body }}
2325
run: |
24-
COMMENT="${{ github.event.comment.body }}"
2526
URL=$(echo "$COMMENT" | grep -o 'https://[^ ]*' | head -1)
2627
echo "preview_url=$URL" >> $GITHUB_OUTPUT
2728
- name: Comment action started

0 commit comments

Comments
 (0)