nuclei-templates/.github/workflows/template-validate.yml

33 lines
769 B
YAML
Raw Normal View History

2021-05-15 14:45:52 +00:00
name: 🛠 Template Validate
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
#- 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
# if: steps.cache-go.outputs.cache-hit != 'true'
2021-05-15 14:45:52 +00:00
env:
GO111MODULE: on
run: |
2021-10-17 21:44:23 +00:00
go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@dev
2021-05-15 14:45:52 +00:00
shell: bash
- name: Template Validation
run: |
2021-09-11 06:46:55 +00:00
nuclei -validate -t .
2021-10-17 21:44:23 +00:00
nuclei -validate -w ./workflows
2021-05-15 14:45:52 +00:00
shell: bash