2021-05-15 14:45:52 +00:00
|
|
|
name: 🛠 Template Validate
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
- name: Installing Nuclei
|
|
|
|
if: steps.cache-go.outputs.cache-hit != 'true'
|
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
|
|
|
run: |
|
2021-07-08 13:23:39 +00:00
|
|
|
go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@dev
|
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
|