Skip to content

Fetch nuclei cves

Fetch nuclei cves #935

name: Fetch nuclei cves
on:
schedule:
- cron: '0 0/12 * * *'
jobs:
report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: page
- name: fetch nuclei_cves
run: |
wget https://github.com/projectdiscovery/nuclei-templates/archive/main.zip
unzip main.zip nuclei-templates-main/cves.json
awk 'BEGIN {print "[";} NF==0{next;} n=="" {print;n++;next;} {print ","; print;} END {print "]"}' ./nuclei-templates-main/cves.json > nuclei.json
- name: commit & push
run: |
git config --global user.name 'Marcuccio'
git config --global user.email 'marcuccio.dev@gmail.com'
(git add nuclei.json && git commit -m "fetch of nuclei cves" && git push) || exit 0