Skip to content

Commit 08c5f62

Browse files
Potential fix for code scanning alert no. 1819: Code injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 73b7fe2 commit 08c5f62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/issue_creation_workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ jobs:
3333
3434
- name: Validate Issue Content
3535
id: validate-issue
36+
env:
37+
ISSUE_BODY: ${{ github.event.issue.body }}
3638
run: |
37-
issue_body="${{ github.event.issue.body }}"
39+
issue_body="$ISSUE_BODY"
3840
if [[ "$issue_body" == *"AI-generated content"* ]] || [[ "$issue_body" == *"existing sites"* ]]; then
3941
echo "Issue body contains disallowed content."
4042
exit 1

0 commit comments

Comments
 (0)