From 910ad7bf27e40db54f3b920a80fc6f50d6411e41 Mon Sep 17 00:00:00 2001 From: L1ghtn1ng Date: Sat, 12 Oct 2019 23:41:15 +0100 Subject: [PATCH] Update ci and dockerfile --- .github/workflows/theHarvester.yml | 44 +++++++++++++++--------------- .travis.yml | 8 +++--- Dockerfile | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/theHarvester.yml b/.github/workflows/theHarvester.yml index b9434ecd..5b6273a9 100644 --- a/.github/workflows/theHarvester.yml +++ b/.github/workflows/theHarvester.yml @@ -33,89 +33,89 @@ jobs: - name: Run theHarvester module baidu run: | - python theHarvester.py -d metasploit.com -b baidu + pipenv run theHarvester.py -d metasploit.com -b baidu - name: Run theHarvester module bing run: | - python theHarvester.py -d metasploit.com -b bing + pipenv run theHarvester.py -d metasploit.com -b bing - name: Run theHarvester module crtsh run: | - python theHarvester.py -d metasploit.com -b crtsh + pipenv run theHarvester.py -d metasploit.com -b crtsh - name: Run theHarvester module dnsdumpster run: | - python theHarvester.py -d metasploit.com -b dnsdumpster + pipenv run theHarvester.py -d metasploit.com -b dnsdumpster - name: Run theHarvester module dogplie run: | - python theHarvester.py -d metasploit.com -b dogpile + pipenv run theHarvester.py -d metasploit.com -b dogpile - name: Run theHarvester module duckduckgo run: | - python theHarvester.py -d metasploit.com -b duckduckgo + pipenv run theHarvester.py -d metasploit.com -b duckduckgo - name: Run theHarvester module exalead run: | - python theHarvester.py -d metasploit.com -b exalead + pipenv run theHarvester.py -d metasploit.com -b exalead - name: Run theHarvester module google run: | - python theHarvester.py -d metasploit.com -b google + pipenv run theHarvester.py -d metasploit.com -b google - name: Run theHarvester module Intelx run: | - python theHarvester.py -d metasploit.com -b intelx + pipenv run theHarvester.py -d metasploit.com -b intelx - name: Run theHarvester module linkedin run: | - python theHarvester.py -d metasploit.com -b linkedin + pipenv run theHarvester.py -d metasploit.com -b linkedin - name: Run theHarvester module linkedin_links run: | - python theHarvester.py -d metasploit.com -b linkedin_links + pipenv run theHarvester.py -d metasploit.com -b linkedin_links - name: Run theHarvester module netcraft run: | - python theHarvester.py -d metasploit.com -b netcraft + pipenv run theHarvester.py -d metasploit.com -b netcraft - name: Run theHarvester module Otx run: | - python theHarvester.py -d metasploit.com -b otx + pipenv run theHarvester.py -d metasploit.com -b otx - name: Run theHarvester module Suip run: | - python theHarvester.py -d metasploit.com -b suip + pipenv run theHarvester.py -d metasploit.com -b suip - name: Run theHarvester module threatcrowd run: | - python theHarvester.py -d metasploit.com -b threatcrowd + pipenv run theHarvester.py -d metasploit.com -b threatcrowd - name: Run theHarvester module trello run: | - python theHarvester.py -d metasploit.com -b trello + pipenv run theHarvester.py -d metasploit.com -b trello - name: Run theHarvester module twitter run: | - python theHarvester.py -d metasploit.com -b twitter + pipenv run theHarvester.py -d metasploit.com -b twitter - name: Run theHarvester module virustotal run: | - python theHarvester.py -d metasploit.com -b virustotal + pipenv run theHarvester.py -d metasploit.com -b virustotal - name: Run theHarvester module yahoo run: | - python theHarvester.py -d metasploit.com -b yahoo + pipenv run theHarvester.py -d metasploit.com -b yahoo - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names - flake8 . --count --show-source --statistics + pipenv run flake8 . --count --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - flake8 . --count --exit-zero --max-line-length=127 --statistics + pipenv run flake8 . --count --exit-zero --max-line-length=127 --statistics - name: Test with pytest run: | - pytest + pipenv run pytest # - name: Static type checking with mypy # run: | # mypy --pretty *.py \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 2c9f9cf1..b3e5f060 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,11 +11,11 @@ before_install: - pip install pipenv - pipenv install install: -- python setup.py test +- pipenv run setup.py test script: -- python theHarvester.py -d metasploit.com -b baidu,bing,crtsh,dnsdumpster,dogpile,duckduckgo,exalead,linkedin,netcraft,otx,intelx,threatcrowd,trello,twitter,virustotal,yahoo -l 200 -- pytest -- flake8 . --count --show-source --statistics +- pipenv run theHarvester.py -d metasploit.com -b baidu,bing,crtsh,dnsdumpster,dogpile,duckduckgo,exalead,linkedin,netcraft,otx,intelx,threatcrowd,trello,twitter,virustotal,yahoo -l 200 +- pipenv run pytest +- pipenv run flake8 . --count --show-source --statistics #- mypy --pretty *.py notifications: email: false diff --git a/Dockerfile b/Dockerfile index fd05a086..85449499 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ RUN apt-get -qq update RUN apt-get install -yqq pipenv RUN pipenv install RUN chmod +x *.py -ENTRYPOINT ["/app/theHarvester.py"] +ENTRYPOINT ["pipenv run /app/theHarvester.py"]