Fetch nuclei cves #956
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: 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 |