We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42371f1 commit 6422476Copy full SHA for 6422476
.github/workflows/ci.yml
@@ -66,7 +66,7 @@ jobs:
66
shell: bash
67
run: |
68
set -euo pipefail
69
- if grep -R --line-number -E "\beval\(|\bexec\(|pickle\.loads|yaml\.load(?!_safe)|subprocess\.(Popen|call)" python_project_deployment/ tests/ || true; then
+ if grep -rn -E '\beval\(|\bexec\(|pickle\.loads|yaml\.load\(|subprocess\.(Popen|call)\(' python_project_deployment/ tests/ 2>/dev/null | grep -v 'yaml\.load_safe' || true; then
70
echo "⚠️ Potentially dangerous API usage detected. Please review." >&2
71
exit 2
72
fi
0 commit comments