Daily Update Nuclei POCs #259
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: Daily Update Nuclei POCs | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: '0 12 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: 1 Clone Repos | |
run: python 1-clone_repos.py | |
- name: 2 Download Nuclei | |
run: | | |
pip install requests | |
python 2-download_nuclei.py | |
unzip nuclei.zip nuclei | |
rm -rf nuclei.zip | |
- name: 3 Check POC | |
run: python 3-check_poc.py | |
- name: 4 Move Duplicated | |
run: python 4-remove_duplicated.py | |
- name: 5 Get POC Name | |
run: python 5-get_pocname.py | |
- name: 6 Delete Nuclei | |
run: rm -rf nuclei | |
- name: Commit and Push changes | |
run: | | |
echo $(date +'%Y%m%d') > date.txt | |
git add . | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -am "$(date +'%Y%m%d')" | |
git push -v --progress |