Potential fix for code scanning alert no. 222: Code injection

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Anthony Stirling 2025-04-14 00:11:01 +01:00 committed by GitHub
parent 7ae3cd3124
commit 95c914e690
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -87,9 +87,10 @@ jobs:
- name: Check for security/login flag
id: check-security-flag
env:
COMMENT_BODY: ${{ github.event.comment.body }}
run: |
COMMENT="${{ github.event.comment.body }}"
if [[ "$COMMENT" == *"security"* ]] || [[ "$COMMENT" == *"login"* ]]; then
if [[ "$COMMENT_BODY" == *"security"* ]] || [[ "$COMMENT_BODY" == *"login"* ]]; then
echo "Security flags detected in comment"
echo "enable_security=true" >> $GITHUB_OUTPUT
else