You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Extract all 'run' step values excluding this validation step
84
+
RUN_STEPS=$(yq eval '.. | select(has("run") and has("name") and .name != "Check for github.event in run steps") | .run' "$file" 2>/dev/null || echo "")
85
+
if echo "$RUN_STEPS" | grep -q "github\.event\."; then
86
+
VIOLATIONS="$VIOLATIONS$file: Contains github.event.* in run step\n"
87
+
fi
88
+
done
89
+
90
+
if [ -n "$VIOLATIONS" ]; then
91
+
echo -e "Found github.event.* usage in run steps. This can lead to script injection vulnerabilities:"
92
+
echo -e "$VIOLATIONS"
93
+
exit 1
94
+
fi
95
+
fi
96
+
97
+
echo "No github.event.inputs usage found in run steps"
0 commit comments