-
Notifications
You must be signed in to change notification settings - Fork 309
50 lines (40 loc) · 1.04 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Check Nuclei POCs
on:
push:
branches:
- main
schedule:
- cron: '10 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: 4 Download Nuclei
run: |
pip install requests
python 4-download_nuclei.py
unzip nuclei.zip nuclei
chmod +x nuclei
rm -rf nuclei.zip
- name: 5 Check POC
run: python 5-check_poc.py
- name: 6 Get Count
run: python 6-get_count.py
- name: 7 Get POC Name
run: python 7-get_pocname.py
- name: 8 Delete Nuclei
run: rm -rf nuclei
- name: Commit and Push changes
run: |
echo $(date +'%Y%m%d') > date.txt
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -am "$(date +'%Y%m%d')"
git push -v --progress