Daily Python Script #134
This file contains 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: Daily Python Script | |
on: | |
schedule: | |
- cron: '0 */6 * * *' # Schedule to run at midnight UTC every day | |
push: | |
branches: | |
- master | |
jobs: | |
run-python-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.10.13 # Choose the Python version you need | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Run Python script | |
run: python search.py | |
env: | |
SHODAN_API_KEY: ${{ secrets.SHODAN_API_KEY }} | |
OTX_API_KEY: ${{ secrets.OTX_API_KEY }} | |
CENSYS_API_ID: ${{ secrets.CENSYS_API_ID }} | |
CENSYS_API_SECRET: ${{ secrets.CENSYS_API_SECRET }} | |