Fetch-CTI #37903
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: Fetch-CTI | |
on: | |
schedule: | |
- cron: '*/30 * * * *' | |
workflow_dispatch: | |
jobs: | |
CTI: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
environment: CI | |
steps: | |
- name: checkout the repo | |
uses: actions/checkout@v3 | |
- name: Use Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: install dependencies | |
run: | | |
pip3 install -r requirements.txt | |
- name: run scraper | |
env: | |
MSTEAMS_WEBHOOK_FEED: ${{ secrets.MSTEAMS_WEBHOOK_FEED }} | |
MSTEAMS_WEBHOOK_RANSOMWARE: ${{ secrets.MSTEAMS_WEBHOOK_RANSOMWARE }} | |
MSTEAMS_WEBHOOK_IOC: ${{ secrets.MSTEAMS_WEBHOOK_IOC }} | |
run: | | |
python3 TeamsIntelBot.py -d -r | |
- name: save changes | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Bot-Parser" | |
DATE=$(date -Iseconds) | |
git commit --all --message "Updated by Bot-Parser on $DATE" || echo "no changes to commit" | |
git push |