Skip to content

Commit 73b7fe2

Browse files
authored
Merge pull request #4915 from codeharborhub/alert-autofix-1820
Potential fix for code scanning alert no. 1820: Code injection
2 parents 0c959f9 + 703a4d2 commit 73b7fe2

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
@@ -41,8 +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

0 commit comments

Comments
 (0)