Bump ruff from 0.14.1 to 0.14.2 #3404
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: TheHarvester Python CI | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - '*' | |
| jobs: | |
| Python: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| max-parallel: 10 | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| python-version: [ '3.12', '3.13', '3.14.0' ] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| sudo mkdir -p /usr/local/etc/theHarvester | |
| sudo cp theHarvester/data/*.yaml /usr/local/etc/theHarvester/ | |
| sudo chown -R runner:runner /usr/local/etc/theHarvester/ | |
| pip install --upgrade pip | |
| pip install .[dev] | |
| 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' | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m "Apply ruff fixes and formatting" || true # Use || true to prevent failure if no changes | |
| git push origin HEAD:${{ github.ref_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - 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 Threatminer | |
| run: | | |
| theHarvester -d yale.edu -b threatminer | |
| 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' }} |