-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (40 loc) · 1.17 KB
/
AutoRun.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
37
38
39
40
41
42
43
44
45
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CVE-Monitor
on:
release:
types: [published]
push:
tags:
- 'v*'
#currently the workflow is set to run every 10 minutes
schedule:
- cron: '0/10 * * * *'
watch:
types: [started]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install requests
pip install PyNaCl
pip install lxml
pip install python-telegram-bot
- name: Monitor CVE
env:
SCKEY: ${{ secrets.SCKEY }}
TG_CHAT_ID: ${{ secrets.TG_CHAT_ID }}
TG_TOKEN: ${{ secrets.TG_TOKEN }}
total_count: ${{ secrets.TOTAL_COUNT }}
option: ${{ secrets.Option }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
python Github-CVE-Listener.py