theHarvester/.github/workflows/theHarvester.yml

132 lines
4 KiB
YAML
Raw Normal View History

2019-09-04 05:32:29 +08:00
name: TheHarvester Python CI
2019-08-28 07:01:20 +08:00
on:
push:
branches:
2019-09-03 03:23:28 +08:00
- '*'
2019-09-01 08:44:54 +08:00
2019-09-01 08:41:23 +08:00
pull_request:
branches:
2019-09-03 03:23:28 +08:00
- '*'
2019-08-28 07:01:20 +08:00
jobs:
2020-03-09 06:42:40 +08:00
tests:
2019-08-28 07:01:20 +08:00
runs-on: ubuntu-latest
strategy:
matrix:
2020-03-09 06:42:40 +08:00
python-version: ['3.7', '3.8', '3.9']
name: Python ${{ matrix.python-version }}
2019-08-28 07:01:20 +08:00
steps:
2020-03-09 06:42:40 +08:00
- uses: actions/checkout@v2
- name: Install Python 3.9
if: matrix.python-version == '3.9'
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
2020-03-09 08:34:49 +08:00
sudo apt-get install -y --no-install-recommends python3.9-dev python3.9-distutils libxml2-dev libxslt-dev
2020-03-09 06:42:40 +08:00
python3.9 -m pip install --upgrade pip setuptools
python3.9 -m pip install --upgrade virtualenv
python3.9 -m virtualenv --python=3.9 $HOME/venv-python3.9
echo "::set-env name=VIRTUAL_ENV::$HOME/venv-python3.9"
echo "::add-path::$HOME/venv-python3.9/bin"
- uses: actions/setup-python@v1.1.1
2020-03-09 06:58:09 +08:00
if: matrix.python-version != '3.9'
with:
python-version: ${{ matrix.python-version }}
architecture: x64
2020-03-09 07:21:50 +08:00
2020-03-09 07:23:54 +08:00
- name: Install dependencies
2020-03-09 07:24:52 +08:00
run: |
2020-03-09 07:21:50 +08:00
pip install --upgrade pip
pip install -r requirements/dev.txt
2020-03-09 07:23:54 +08:00
- name: Run theHarvester module baidu
2020-03-09 07:24:52 +08:00
run: |
2020-03-09 08:28:02 +08:00
python theHarvester.py -d yale.edu -b baidu
2020-03-09 07:21:50 +08:00
2020-03-09 07:23:54 +08:00
- name: Run theHarvester module bufferoverun
2020-03-09 07:24:52 +08:00
run: |
2020-03-09 08:28:02 +08:00
python theHarvester.py -d yale.edu -b bufferoverun
2020-03-09 07:21:50 +08:00
2020-03-09 07:23:54 +08:00
- name: Run theHarvester module bing
2020-03-09 08:28:02 +08:00
run: |
python theHarvester.py -d yale.edu -b bing
2020-03-09 07:21:50 +08:00
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module certspotter
run: |
python theHarvester.py -d yale.edu -b certspotter
2020-03-09 07:21:50 +08:00
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module crtsh
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d hcl.com -b crtsh
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module dnsdumpster
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b dnsdumpster
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module dogplie
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b dogpile
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module duckduckgo
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b duckduckgo
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module exalead
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b exalead
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module google
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b google
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module Intelx
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b intelx
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module linkedin
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b linkedin
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module linkedin_links
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b linkedin_links
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module netcraft
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b netcraft
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module Otx
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b otx
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module threatcrowd
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b threatcrowd
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module trello
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b trello
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module twitter
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b twitter
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module virustotal
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b virustotal
2020-03-09 08:28:02 +08:00
- name: Run theHarvester module yahoo
run: |
2020-03-09 07:21:50 +08:00
python theHarvester.py -d yale.edu -b yahoo
2020-03-09 08:28:02 +08:00
- name: Lint with flake8
run: |
flake8 . --count --show-source --statistics
flake8 . --count --exit-zero --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- name: Static type checking with mypy
run: |
mypy --pretty theHarvester/*/*.py