2021-05-15 14:45:52 +00:00
|
|
|
name: 🛠 Template Validate
|
|
|
|
|
2021-08-23 11:39:47 +00:00
|
|
|
on: [ push, pull_request ]
|
2021-05-15 14:45:52 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-09-10 12:17:08 +00:00
|
|
|
- uses: actions/checkout@master
|
|
|
|
- uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.17
|
2021-05-15 14:45:52 +00:00
|
|
|
|
2021-10-27 10:04:35 +00:00
|
|
|
- name: Cache Go
|
|
|
|
id: cache-go
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: /home/runner/go
|
|
|
|
key: ${{ runner.os }}-go
|
2021-05-15 14:45:52 +00:00
|
|
|
|
|
|
|
- name: Installing Nuclei
|
2021-12-09 13:00:35 +00:00
|
|
|
# if: steps.cache-go.outputs.cache-hit != 'true'
|
2021-05-15 14:45:52 +00:00
|
|
|
run: |
|
2021-10-26 09:32:32 +00:00
|
|
|
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
|
2021-05-15 14:45:52 +00:00
|
|
|
|
|
|
|
- name: Template Validation
|
|
|
|
run: |
|
2021-09-11 06:46:55 +00:00
|
|
|
nuclei -validate -t .
|
2021-10-27 10:04:35 +00:00
|
|
|
nuclei -validate -w ./workflows
|