Skip to content

Commit 84c8d95

Browse files
authored
Merge pull request #151 from codeharborhub/alert-autofix-1
Potential fix for code scanning alert no. 1: Code injection
2 parents 5dca846 + 14647f4 commit 84c8d95

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/issue_creation_workflow.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,20 @@ jobs:
3636
3737
- name: Validate Issue Content
3838
id: validate-issue
39+
env:
40+
ISSUE_BODY: ${{ github.event.issue.body }}
3941
run: |
40-
issue_body="${{ github.event.issue.body }}"
42+
issue_body="$ISSUE_BODY"
4143
if [[ "$issue_body" == *"AI-generated content"* ]] || [[ "$issue_body" == *"existing sites"* ]]; then
4244
echo "Issue body contains disallowed content."
4345
exit 1
4446
fi
4547
4648
- name: Check for Security and Trust
49+
env:
50+
ISSUE_BODY: ${{ github.event.issue.body }}
4751
run: |
48-
issue_body="${{ github.event.issue.body }}"
52+
issue_body="$ISSUE_BODY"
4953
if [[ "$issue_body" != *"security"* ]] || [[ "$issue_body" != *"trust"* ]]; then
5054
echo "Issue does not mention security or trust."
5155
exit 1

0 commit comments

Comments
 (0)