From 08c5f62904bc4b2c575c35bf3ddb5bd6283fe262 Mon Sep 17 00:00:00 2001 From: Ajay Dhangar <99037494+ajay-dhangar@users.noreply.github.com> Date: Fri, 26 Dec 2025 09:42:50 +0530 Subject: [PATCH] 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> --- .github/workflows/issue_creation_workflow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/issue_creation_workflow.yml b/.github/workflows/issue_creation_workflow.yml index 5cc194499..19de647b5 100644 --- a/.github/workflows/issue_creation_workflow.yml +++ b/.github/workflows/issue_creation_workflow.yml @@ -33,8 +33,10 @@ jobs: - name: Validate Issue Content id: validate-issue + env: + ISSUE_BODY: ${{ github.event.issue.body }} run: | - issue_body="${{ github.event.issue.body }}" + issue_body="$ISSUE_BODY" if [[ "$issue_body" == *"AI-generated content"* ]] || [[ "$issue_body" == *"existing sites"* ]]; then echo "Issue body contains disallowed content." exit 1