Skip to content

Commit 92d53ea

Browse files
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>
1 parent 2385f55 commit 92d53ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/issue_creation_workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ jobs:
4141
fi
4242
4343
- name: Check for Security and Trust
44+
env:
45+
ISSUE_BODY: ${{ github.event.issue.body }}
4446
run: |
45-
issue_body="${{ github.event.issue.body }}"
47+
issue_body="$ISSUE_BODY"
4648
if [[ "$issue_body" != *"security"* ]] || [[ "$issue_body" != *"trust"* ]]; then
4749
echo "Issue does not mention security or trust."
4850
exit 1
49-
fi

0 commit comments

Comments
 (0)