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:
|
2023-09-12 10:36:40 +00:00
|
|
|
- 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
|
2023-12-11 05:07:46 +00:00
|
|
|
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
|
2021-12-25 07:43:56 +00:00
|
|
|
|
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: |
|
2021-12-26 04:47:37 +00:00
|
|
|
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
|