workflow fix to test with current code
@@ -13,21 +13,9 @@ jobs:
with:
go-version: 1.18
- - name: Get Github tag
- id: meta
- run: |
- curl --silent "https://api.github.com/repos/projectdiscovery/nuclei/releases/latest" | jq -r .tag_name | xargs -I {} echo TAG={} >> $GITHUB_OUTPUT
-
- - name: Setup Nuclei
- if: steps.meta.outputs.TAG != ''
- env:
- VERSION: ${{ steps.meta.outputs.TAG }}
- run: |
- wget -q https://github.com/projectdiscovery/nuclei/releases/download/${VERSION}/nuclei_${VERSION:1}_linux_amd64.zip
- sudo unzip nuclei*.zip -d /usr/local/bin
- working-directory: /tmp
-
- name: Template Validation
run: |
- nuclei -validate
- nuclei -validate -w ./workflows
\ No newline at end of file
+ go run . -ut
+ go run . -validate
+ go run . -validate -w workflows
+ working-directory: v2/cmd/nuclei/
\ No newline at end of file
