From 3e0755cb6a8a8474e3e6ebf3e21d512566c10bed Mon Sep 17 00:00:00 2001 From: sandeep <8293321+ehsandeep@users.noreply.github.com> Date: Sat, 15 May 2021 20:15:52 +0530 Subject: [PATCH 1/5] Added Template Validator workflow --- .github/workflows/template-validate.yml | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/template-validate.yml diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml new file mode 100644 index 0000000000..1c8a0982b7 --- /dev/null +++ b/.github/workflows/template-validate.yml @@ -0,0 +1,35 @@ +name: 🛠 Template Validate + +on: [push, pull_request] + +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 + + - name: Cache Go + id: cache-go + uses: actions/cache@v2 + with: + path: /home/runner/go + key: ${{ runner.os }}-go + + - name: Installing Nuclei + if: steps.cache-go.outputs.cache-hit != 'true' + env: + GO111MODULE: on + run: | + go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei + shell: bash + + - name: Template Validation + run: | + nuclei -t . -v + shell: bash \ No newline at end of file From 8c6b4da40a2c2e56369cf1b510f8376d511abe16 Mon Sep 17 00:00:00 2001 From: sandeep Date: Wed, 7 Jul 2021 19:24:39 +0530 Subject: [PATCH 2/5] new flag for validation --- .github/workflows/template-validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index 1c8a0982b7..bb2001f22c 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -31,5 +31,5 @@ jobs: - name: Template Validation run: | - nuclei -t . -v + nuclei -validate -t ~/nuclei-templates/ shell: bash \ No newline at end of file From 0f34426f9f8c89314a639da630447372c0ec7a5c Mon Sep 17 00:00:00 2001 From: sandeep Date: Thu, 8 Jul 2021 18:53:39 +0530 Subject: [PATCH 3/5] Update template-validate.yml --- .github/workflows/template-validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index bb2001f22c..8e3dd89214 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -26,7 +26,7 @@ jobs: env: GO111MODULE: on run: | - go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei + go get -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@dev shell: bash - name: Template Validation From 91d481f5f7ff4638dd1d82189ee7fdf545355460 Mon Sep 17 00:00:00 2001 From: sandeep Date: Thu, 8 Jul 2021 18:55:17 +0530 Subject: [PATCH 4/5] Update template-validate.yml --- .github/workflows/template-validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index 8e3dd89214..3c8b7221ed 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -31,5 +31,5 @@ jobs: - name: Template Validation run: | - nuclei -validate -t ~/nuclei-templates/ + nuclei -validate -t . shell: bash \ No newline at end of file From 2c8ff1ad2c23c378e95e82d56e4da6482e804dcd Mon Sep 17 00:00:00 2001 From: sandeep Date: Thu, 8 Jul 2021 18:58:02 +0530 Subject: [PATCH 5/5] Update template-validate.yml --- .github/workflows/template-validate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/template-validate.yml b/.github/workflows/template-validate.yml index 3c8b7221ed..dc67264c3f 100644 --- a/.github/workflows/template-validate.yml +++ b/.github/workflows/template-validate.yml @@ -31,5 +31,5 @@ jobs: - name: Template Validation run: | - nuclei -validate -t . + nuclei -validate -t . -exclude .pre-commit-config.yaml shell: bash \ No newline at end of file