From 703a4d244aca84931928cb350cd8b67da4c07546 Mon Sep 17 00:00:00 2001 From: Ajay Dhangar <99037494+ajay-dhangar@users.noreply.github.com> Date: Fri, 26 Dec 2025 09:30:43 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 1820: 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 45e4a9fb1..5cc194499 100644 --- a/.github/workflows/issue_creation_workflow.yml +++ b/.github/workflows/issue_creation_workflow.yml @@ -41,8 +41,10 @@ jobs: fi - name: Check for Security and Trust + env: + ISSUE_BODY: ${{ github.event.issue.body }} run: | - issue_body="${{ github.event.issue.body }}" + issue_body="$ISSUE_BODY" if [[ "$issue_body" != *"security"* ]] || [[ "$issue_body" != *"trust"* ]]; then echo "Issue does not mention security or trust." exit 1