Merge pull request #2220

* support python 3.14

* fix syntax warnings

* bump dockerfile to 3.14, optimize build time + size
This commit is contained in:
Branch Vincent
2025-12-30 09:36:19 +00:00
committed by GitHub
parent d03790e6da
commit 26c8d639be
7 changed files with 909 additions and 537 deletions
+5 -3
View File
@@ -6,6 +6,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Build the Docker image
run: docker build . --file Dockerfile --tag theharvester:$(date +%s)
- uses: actions/checkout@v6
- name: Build the Docker image
run: docker build --tag theharvester .
- name: Smoke test
run: docker run --rm theharvester --help | grep restfulHarvest
+1 -15
View File
@@ -16,7 +16,7 @@ jobs:
max-parallel: 10
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.12', '3.13', '3.14.0' ]
python-version: [ '3.12', '3.13', '3.14' ]
steps:
- uses: actions/checkout@v6
@@ -34,17 +34,14 @@ jobs:
sudo chown -R runner:runner /usr/local/etc/theHarvester/
uv sync --all-groups --frozen
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Lint with ruff
run: |
ruff check --fix
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Format with ruff
run: |
ruff format
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Commit changes for ruff formating and linting
if: github.event_name == 'push'
@@ -60,54 +57,43 @@ jobs:
- name: Test with pytest
run: |
pytest tests/**
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module Baidu
run: |
theHarvester -d yale.edu -b baidu
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module CertSpotter
run: |
theHarvester -d yale.edu -b certspotter
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module Crtsh
run: |
theHarvester -d hcl.com -b crtsh
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module DuckDuckGo
run: |
theHarvester -d yale.edu -b duckduckgo
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module HackerTarget
run: |
theHarvester -d yale.edu -b hackertarget
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module Otx
run: |
theHarvester -d yale.edu -b otx
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module RapidDns
run: |
theHarvester -d yale.edu -b rapiddns
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module Urlscan
run: |
theHarvester -d yale.edu -b urlscan
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module Yahoo
run: |
theHarvester -d yale.edu -b yahoo
continue-on-error: ${{ matrix.python-version == '3.14.0' }}
- name: Run theHarvester module DNS brute force
run: |
theHarvester -d yale.edu -c
continue-on-error: ${{ matrix.python-version == '3.14.0' }}