From 92d53eaea2ca3bfb63b8d79b7840fff0758e36af Mon Sep 17 00:00:00 2001 From: Ajay Dhangar <99037494+ajay-dhangar@users.noreply.github.com> Date: Sat, 27 Dec 2025 14:42:11 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 2: 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_creation_workflow.yml b/.github/workflows/issue_creation_workflow.yml index c1bbaff..024d40d 100644 --- a/.github/workflows/issue_creation_workflow.yml +++ b/.github/workflows/issue_creation_workflow.yml @@ -41,9 +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 - fi