-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (39 loc) · 1.12 KB
/
Update.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
name: Update Notebook
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 */12 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: 'x64'
- name: Install library and other requirements
run: |
pip install jupyter nbconvert
pip install -r requirements.txt
- name: Run Notebooks
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
wget https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-{2002..2022}.json.zip
unzip -o "*.zip"
wget https://epss.cyentia.com/epss_scores-current.csv.gz
gzip -d epss_scores-current.csv.gz
jupyter nbconvert --ExecutePreprocessor.timeout=-1 --to notebook --inplace --execute KEV-EPSS.ipynb
rm *.json
rm *.zip
rm epss_scores-current.csv
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}