mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-06 18:30:57 +00:00
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:
parent
7ae3cd3124
commit
95c914e690
@ -87,9 +87,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Check for security/login flag
|
- name: Check for security/login flag
|
||||||
id: check-security-flag
|
id: check-security-flag
|
||||||
|
env:
|
||||||
|
COMMENT_BODY: ${{ github.event.comment.body }}
|
||||||
run: |
|
run: |
|
||||||
COMMENT="${{ github.event.comment.body }}"
|
if [[ "$COMMENT_BODY" == *"security"* ]] || [[ "$COMMENT_BODY" == *"login"* ]]; then
|
||||||
if [[ "$COMMENT" == *"security"* ]] || [[ "$COMMENT" == *"login"* ]]; then
|
|
||||||
echo "Security flags detected in comment"
|
echo "Security flags detected in comment"
|
||||||
echo "enable_security=true" >> $GITHUB_OUTPUT
|
echo "enable_security=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user