-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
34 lines (31 loc) · 1020 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "Nuclei Action"
description: "Nuclei is a fast and customisable vulnerability scanner based on simple YAML based DSL"
inputs:
url:
description: URL to scan
required: true
output:
description: "File to save output result"
required: false
default: "nuclei.log"
user-agent:
description: "Set a User-Agent header"
required: false
default: "Nuclei - Open-source project (github.com/projectdiscovery/nuclei)"
runs:
using: "composite"
steps:
- run: |
if ! [ -x "$(command -v nuclei)" ]; then
wget -q https://github.com/projectdiscovery/nuclei/releases/download/v2.9.15/nuclei_2.9.15_linux_amd64.zip
unzip nuclei_2.9.15_linux_amd64.zip
mkdir -p $HOME/.local/bin
mv nuclei $HOME/.local/bin/
fi
shell: bash
- run: |
$HOME/.local/bin/nuclei \
-target ${{ inputs.url }} \
-json-export ${{ inputs.output }} \
-header "User-Agent: ${{ inputs.user-agent }}"
shell: bash