Skip to content

Fetch-CTI

Fetch-CTI #36243

Workflow file for this run

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