-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (34 loc) · 1.07 KB
/
fetchCTI.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 "bot-parser@users.noreply.github.com"
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