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

35 lines
810 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:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup golang
uses: actions/setup-go@v2
with:
go-version: 1.14
#- 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-08-19 18:09:29 +00:00
go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei
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-05-15 14:45:52 +00:00
shell: bash