nuclei-templates/.github/workflows/template-validate.yml

29 lines
887 B
YAML
Raw Normal View History

2021-05-15 14:45:52 +00:00
name: 🛠 Template Validate
on: [ push, pull_request ]
2021-05-15 14:45:52 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2022-03-06 09:01:18 +00:00
- uses: actions/checkout@v2
2021-05-15 14:45:52 +00:00
2022-03-06 09:01:18 +00:00
- name: Get Github tag
id: meta
run: |
echo "::set-output name=tag::$(curl --silent "https://api.github.com/repos/projectdiscovery/nuclei/releases/latest" | jq -r .tag_name)"
- name: Setup Nuclei
2022-03-06 09:01:18 +00:00
if: steps.meta.outputs.tag != ''
env:
2022-03-06 09:01:18 +00:00
VERSION: ${{ steps.meta.outputs.tag }}
2021-05-15 14:45:52 +00:00
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
2021-05-15 14:45:52 +00:00
- name: Template Validation
run: |
cp -r ${{ github.workspace }} $HOME
2022-07-04 13:17:08 +00:00
nuclei -validate -t . -et .git/
2021-10-27 10:04:35 +00:00
nuclei -validate -w ./workflows