Skip to content

Commit

Permalink
Update report.yml
Browse files Browse the repository at this point in the history
Signed-off-by: gitworkflows <[email protected]>
  • Loading branch information
gitworkflows authored Jun 30, 2024
1 parent 15114b1 commit c0ec7c2
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/report.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
name: Deploy CVE.ICU
name: Deploy-Book
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: "0 */4 * * *"
- cron: "0 */12 * * *"

# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: 'x64'

# Install dependencies

- name: Install dependencies
run: |
sudo apt-get install jupyter unzip -y --fix-missing
sudo apt-get install jupyter -y --fix-missing
python -m pip install nbconvert
python -m pip install --upgrade pip -r requirements.txt
- name: Grab Needed Data
run: |
wget -q https://nvd.handsonhacking.org/nvd.jsonl
wget -q https://raw.githubusercontent.com/CVEProject/cve-website/dev/src/assets/data/CNAsList.json
ls -lh
sudo apt install unzip
wget https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-{2002..2023}.json.zip
unzip -o "*.zip"
wget https://raw.githubusercontent.com/CVEProject/cve-website/dev/src/assets/data/CNAsList.json
- name: Run Notebooks
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -41,20 +46,21 @@ jobs:
jupyter nbconvert --to notebook --inplace --execute CVE2021.ipynb
jupyter nbconvert --to notebook --inplace --execute CVE2022.ipynb
jupyter nbconvert --to notebook --inplace --execute CVE2023.ipynb
jupyter nbconvert --to notebook --inplace --execute CVE2024.ipynb
jupyter nbconvert --to notebook --inplace --execute CVECNAMap.ipynb
# jupyter nbconvert --to notebook --inplace --execute CVECNAMap.ipynb
jupyter nbconvert --to notebook --inplace --execute CVECalendar.ipynb
jupyter nbconvert --to notebook --inplace --execute CVEGrowth.ipynb
jupyter nbconvert --to notebook --inplace --execute CVECVSS.ipynb
jupyter nbconvert --to notebook --inplace --execute CVECNA.ipynb
jupyter nbconvert --to notebook --inplace --execute CVECWE.ipynb
jupyter nbconvert --to notebook --inplace --execute CVECPE.ipynb
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Build the book
run: |
Expand All @@ -65,4 +71,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
cname: cve.icu
cname: cve.khulnasoft.com

0 comments on commit c0ec7c2

Please sign in to comment.