Update KEV EPSS #1836
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: Update KEV EPSS | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
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..2024}.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 }} |