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
|
|
|
|
steps:
|
2023-01-15 16:05:57 +00:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
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@v3
|
|
|
|
with:
|
|
|
|
go-version: 1.19
|
2021-12-25 07:43:56 +00:00
|
|
|
|
2023-01-15 16:05:57 +00:00
|
|
|
- name: nuclei install
|
|
|
|
run: go install -v github.com/projectdiscovery/nuclei/v2/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
|
2022-08-28 21:03:35 +00:00
|
|
|
nuclei -validate
|
2021-10-27 10:04:35 +00:00
|
|
|
nuclei -validate -w ./workflows
|