Wuhp commited on
Commit
43bbd09
·
1 Parent(s): cf0d9d3

Validate entire Nuclei template profile and scanner configuration in Docker

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy-hf.yml +3 -1
.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/technology-headers.yaml -duc > /tmp/nuclei-validate 2>&1
 
 
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