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-08-23 11:39:47 +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-08-23 11:39:47 +00:00
|
|
|
# if: steps.cache-go.outputs.cache-hit != 'true'
|
2021-05-15 14:45:52 +00:00
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
|
|
|
run: |
|
2021-09-10 17:21:33 +00:00
|
|
|
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@master
|
2021-05-15 14:45:52 +00:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Template Validation
|
|
|
|
run: |
|
2021-07-08 13:28:02 +00:00
|
|
|
nuclei -validate -t . -exclude .pre-commit-config.yaml
|
2021-09-01 18:44:43 +00:00
|
|
|
nuclei -validate -w ./workflows -exclude .pre-commit-config.yaml
|
2021-05-15 14:45:52 +00:00
|
|
|
shell: bash
|