| 1 |
name: Inspection |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
build: |
| 7 |
runs-on: ${{ matrix.os }} |
| 8 |
|
| 9 |
strategy: |
| 10 |
fail-fast: false |
| 11 |
matrix: |
| 12 |
python-version: [3.9, 3.11] |
| 13 |
os: ['ubuntu-latest', 'windows-latest'] |
| 14 |
|
| 15 |
steps: |
| 16 |
- uses: actions/checkout@v4 |
| 17 |
- name: Set up Python ${{ matrix.python-version }} |
| 18 |
uses: actions/setup-python@v5 |
| 19 |
with: |
| 20 |
python-version: ${{ matrix.python-version }} |
| 21 |
- name: Install dependencies |
| 22 |
run: | |
| 23 |
python -m pip install --upgrade pip |
| 24 |
pip install codespell flake8 -r requirements.txt |
| 25 |
- name: Test |
| 26 |
run: | |
| 27 |
python3 dirsearch.py -w ./tests/static/wordlist.txt -u https://example.com -o "tmp_report.{extension}" -O json,xml,plain,csv,md,sqlite,html --force-recursive -R 3 --full-url -q |
| 28 |
python3 dirsearch.py -w ./tests/static/wordlist.txt -l ./tests/static/targets.txt --subdirs /,admin/ --exclude-extensions conf -q -L -f -i 200 --user-agent a --log tmp_log.log |
| 29 |
python3 dirsearch.py -w ./tests/static/wordlist.txt --nmap-report ./tests/static/nmap.xml --max-rate 2 -H K:V --random-agent --overwrite-extensions --no-color --filter-threshold 3 |
| 30 |
python3 dirsearch.py -w ./tests/static/wordlist.txt --raw ./tests/static/raw.txt --prefixes . --suffixes ~ --skip-on-status 404 -m POST -d test=1 --crawl --min-response-size 9 |
| 31 |
echo https://self-signed.badssl.com | python3 dirsearch.py -w ./tests/static/wordlist.txt --stdin --max-time 8 --auth u:p --auth-type basic --scheme http --target-max-time 9 |
| 32 |
|
| 33 |
- name: Unit Test |
| 34 |
run: python3 testing.py |
| 35 |
|
| 36 |
- name: Lint |
| 37 |
run: | |
| 38 |
flake8 . |
| 39 |
- name: Codespell |
| 40 |
run: codespell -S CONTRIBUTORS.md |