2021-12-05 14:11:14 +00:00
|
|
|
name: 🛠 Template Validate
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 05:04:20 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-11 08:33:19 +00:00
|
|
|
- uses: actions/setup-go@v3
|
2021-12-05 14:11:14 +00:00
|
|
|
with:
|
2022-04-18 12:43:37 +00:00
|
|
|
go-version: 1.18
|
2021-12-05 14:11:14 +00:00
|
|
|
|
|
|
|
- name: Cache Go
|
|
|
|
id: cache-go
|
2022-03-28 05:05:02 +00:00
|
|
|
uses: actions/cache@v3
|
2021-12-05 14:11:14 +00:00
|
|
|
with:
|
|
|
|
path: /home/runner/go
|
|
|
|
key: ${{ runner.os }}-go
|
|
|
|
|
|
|
|
- name: Installing Nuclei
|
2021-12-25 07:17:48 +00:00
|
|
|
# if: steps.cache-go.outputs.cache-hit != 'true'
|
2021-12-05 14:11:14 +00:00
|
|
|
run: |
|
|
|
|
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
|
|
|
|
- name: Template Validation
|
|
|
|
run: |
|
|
|
|
nuclei -validate
|
|
|
|
nuclei -validate -w ./workflows
|