29 lines
883 B
YAML
29 lines
883 B
YAML
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 |