File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -197,13 +197,13 @@ jobs:
197197 echo "Scanning for AI/ML security vulnerabilities..."
198198
199199 # Check for hardcoded model paths
200- grep -r "\.gguf|\.bin|\.pt|\.onnx" --include="*.py" --include="*.go" --include="*.rs" . || echo "No hardcoded model paths found"
200+ grep -r "\.gguf\ |\.bin\ |\.pt\ |\.onnx" --include="*.py" --include="*.go" --include="*.rs" . || echo "No hardcoded model paths found"
201201
202202 # Check for insecure model loading
203- grep -r "torch\.load|pickle\.load|joblib\.load" --include="*.py" . || echo "No insecure model loading found"
203+ grep -r "torch\.load\ |pickle\.load\ |joblib\.load" --include="*.py" . || echo "No insecure model loading found"
204204
205205 # Check for prompt injection vulnerabilities
206- grep -r "eval|exec|subprocess" --include="*.py" --include="*.go" . || echo "No dangerous execution patterns found"
206+ grep -r "eval\ |exec\ |subprocess" --include="*.py" --include="*.go" . || echo "No dangerous execution patterns found"
207207
208208 - name : Upload security scan results
209209 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments