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:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup golang
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
|
|
|
go-version: 1.14
|
|
|
|
|
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-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
|