Wuhp commited on
Commit ·
43bbd09
1
Parent(s): cf0d9d3
Validate entire Nuclei template profile and scanner configuration in Docker
Browse files
.github/workflows/deploy-hf.yml
CHANGED
|
@@ -58,7 +58,9 @@ jobs:
|
|
| 58 |
grep -q -- "-json" /tmp/ffuf-help
|
| 59 |
/opt/asfb-venv/bin/arjun -h > /tmp/arjun-help 2>&1 || true
|
| 60 |
grep -q -- "-oJ" /tmp/arjun-help
|
| 61 |
-
/usr/local/bin/nuclei -validate -t /app/app/nuclei-templates
|
|
|
|
|
|
|
| 62 |
/opt/asfb-venv/bin/python -c "import pathlib; assert pathlib.Path(\"/opt/sqlmap/sqlmap.py\").is_file()"
|
| 63 |
'
|
| 64 |
- name: Validate Hugging Face token
|
|
|
|
| 58 |
grep -q -- "-json" /tmp/ffuf-help
|
| 59 |
/opt/asfb-venv/bin/arjun -h > /tmp/arjun-help 2>&1 || true
|
| 60 |
grep -q -- "-oJ" /tmp/arjun-help
|
| 61 |
+
/usr/local/bin/nuclei -validate -t /app/app/nuclei-templates -duc > /tmp/nuclei-validate 2>&1
|
| 62 |
+
/opt/asfb-venv/bin/python -c "from app import config; import pathlib; assert all(pathlib.Path(p).is_file() for p in config.NUCLEI_TEMPLATE_PATHS)"
|
| 63 |
+
/opt/asfb-venv/bin/python -c "from app import config; assert config.ARJUN_WORDLIST in (\"small\", \"medium\", \"large\")"
|
| 64 |
/opt/asfb-venv/bin/python -c "import pathlib; assert pathlib.Path(\"/opt/sqlmap/sqlmap.py\").is_file()"
|
| 65 |
'
|
| 66 |
- name: Validate Hugging Face token
|