mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-01 07:13:00 +00:00
ci: quote github.base_ref in shell to prevent injection
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -104,7 +104,7 @@ jobs:
|
|||||||
|
|
||||||
DURATIONS_ARG=""
|
DURATIONS_ARG=""
|
||||||
if [ -f "$DURATION_FILE" ]; then
|
if [ -f "$DURATION_FILE" ]; then
|
||||||
if git diff origin/${{ github.base_ref }}...HEAD --name-only 2>/dev/null | grep -q "^lib/.*/tests/.*\.py$"; then
|
if git diff "origin/${{ github.base_ref }}...HEAD" --name-only 2>/dev/null | grep -q "^lib/.*/tests/.*\.py$"; then
|
||||||
echo "::notice::Test files changed — using even splitting"
|
echo "::notice::Test files changed — using even splitting"
|
||||||
else
|
else
|
||||||
echo "::notice::Using cached test durations for optimal splitting"
|
echo "::notice::Using cached test durations for optimal splitting"
|
||||||
|
|||||||
Reference in New Issue
Block a user