31 lines
907 B
YAML
31 lines
907 B
YAML
name: 🛠 Template Validate
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**.yaml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: 1.21.x
|
|
|
|
- name: nuclei install
|
|
run: go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
|
|
|
|
- name: Template Validation
|
|
run: |
|
|
cp -r ${{ github.workspace }} $HOME
|
|
nuclei -duc -validate -allow-local-file-access -et /home/runner/nuclei-templates/config/.git -et /home/runner/nuclei-templates/config
|
|
nuclei -duc -validate -w ./workflows -allow-local-file-access -et /home/runner/nuclei-templates/config/.git -et /home/runner/nuclei-templates/config
|