Skip to content

Merge pull request #22 from cbk914/snyk-fix-cf891675cf4063c0f74a82b59… #72

Merge pull request #22 from cbk914/snyk-fix-cf891675cf4063c0f74a82b59…

Merge pull request #22 from cbk914/snyk-fix-cf891675cf4063c0f74a82b59… #72

name: 🛠 Template Validate
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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: |
cp -r ${{ github.workspace }} $HOME
nuclei -validate
nuclei -validate -w ./workflows