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

31 lines
907 B
YAML
Raw Normal View History

2021-05-15 14:45:52 +00:00
name: 🛠 Template Validate
2023-01-05 10:56:27 +00:00
on:
pull_request:
2023-01-15 16:05:57 +00:00
paths:
- '**.yaml'
2023-01-16 10:51:02 +00:00
workflow_dispatch:
2021-05-15 14:45:52 +00:00
jobs:
build:
runs-on: ubuntu-latest
2024-03-02 09:35:40 +00:00
if: github.repository == 'projectdiscovery/nuclei-templates'
2021-05-15 14:45:52 +00:00
steps:
- uses: actions/checkout@v4
2023-01-15 16:05:57 +00:00
with:
fetch-depth: 0
2021-05-15 14:45:52 +00:00
2023-01-15 16:05:57 +00:00
- name: Set up Go
uses: actions/setup-go@v5
2023-01-15 16:05:57 +00:00
with:
2023-10-20 11:31:19 +00:00
go-version: 1.21.x
2023-01-15 16:05:57 +00:00
- name: nuclei install
2023-10-20 11:31:19 +00:00
run: go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
2021-05-15 14:45:52 +00:00
- name: Template Validation
run: |
cp -r ${{ github.workspace }} $HOME
2023-12-14 17:41:29 +00:00
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