
Vulnerability Scan with Nuclei
यह Nuclei Action Nuclei को GitHub Action के साथ ऑर्केस्ट्रेट करना आसान बनाता है। अपने सभी Nuclei Templates को शक्तिशाली निरंतर सुरक्षा वर्कफ़्लो में एकीकृत करें और इसे अपने सुरक्षित सॉफ़्टवेयर डेवलपमेंट जीवन चक्र का हिस्सा बनाएं।
Nuclei Action
v3.0.0+ Node.js v24 पर चलता है और CLI-प्रथम इंटरफ़ेस अपनाता है, जो version, install-only, args, आदि जैसे इनपुट स्वीकार करता है, और केवल stdout और stderr को आउटपुट देता है।v2.0.0+ और v2.x target, urls, templates, workflows, flags और विभिन्न एक्सपोर्टर/रिपोर्टिंग टॉगल जैसे एक्शन-विशिष्ट इनपुट पर निर्भर करते हैं; v2.x अब अप्रचलित हैं और 1 मार्च, 2026 के बाद समर्थित नहीं हैं। अपग्रेड करने से पहले MIGRATION.md देखें।v1+ Node.js v16 पर चलता है और target, urls, templates, workflows, output, json, include-rr, config, report-config, github-report, github-token, sarif-export, markdown-export, और flags जैसे इनपुट का उपयोग करता है।[!IMPORTANT]
configऔरconfig-pathएक साथ सेट नहीं होने चाहिए।argsहमेशाconfigयाconfig-pathपर प्राथमिकता लेते हैं।
[!NOTE] जब डीबग लॉगिंग सक्षम होता है, तो यह एक्शन स्वचालित रूप से Nuclei में
-debugऔर-verboseफ़्लैग जोड़ता है।
| name | description |
|---|---|
stdout | Nuclei चलाने से प्राप्त मानक आउटपुट |
stderr | Nuclei चलाने से प्राप्त मानक त्रुटि |
यह एक्शन node24 एक्शन है।
- uses: projectdiscovery/nuclei-action@v3
with:
version:
# Setup with specific version ("latest" or in format "vX.Y.Z").
#
# Required: true
# Default: latest
install-only:
# Install Nuclei without running scans.
#
# Required: false
# Default: false
args:
# Arguments to pass to Nuclei.
#
# Required: false
# Default: ""
config:
# Nuclei configuration file content.
#
# Required: false
# Default: ""
config-path:
# Path to Nuclei configuration file.
#
# Required: false
# Default: ""
cache:
# Enable caching of Nuclei caches, configs, templates, and browser.
#
# Required: false
# Default: true
token:
# GitHub Token. It is used to fetch Nuclei releases from GitHub.
#
# Required: true
# Default: ${{ github.token }}
डिफ़ॉल्ट सेटअप (नवीनतम Nuclei)
- uses: projectdiscovery/nuclei-action@v3
with:
args: -u http://scanme.sh
विशिष्ट संस्करण के साथ सेटअप
- uses: projectdiscovery/nuclei-action@v3
with:
version: v3.6.0
args: -u http://scanme.sh
स्कैन चलाए बिना Nuclei सेटअप या इंस्टॉल करें
- uses: projectdiscovery/nuclei-action@v3
with:
version: v3.6.0
install-only: true
- run: nuclei -version
या केवल इंस्टॉल और बिना कैश के:
- uses: projectdiscovery/nuclei-action@v3
with:
version: v3.6.0
install-only: true
cache: false
- run: nuclei -version
Nuclei कॉन्फ़िगरेशन के साथ सेटअप
- uses: projectdiscovery/nuclei-action@v3
with:
version: latest
config: |
target:
- http://scanme.sh
sarif-export: results.sarif
या इसे वेरिएबल के माध्यम से पास करें:
- uses: projectdiscovery/nuclei-action@v3
with:
version: latest
config: ${{ vars.NUCLEI_CONFIG }}
या रिपॉजिटरी-प्रबंधित कॉन्फ़िगरेशन फ़ाइल के माध्यम से:
- uses: projectdiscovery/nuclei-action@v3
with:
version: latest
config-path: path/to/nuclei.yaml
GitHub कोड स्कैनिंग के साथ सेटअप
- uses: projectdiscovery/nuclei-action@v3
with:
version: latest
config: |
target:
- http://scanme.sh
sarif-export: results.sarif
- uses: github/codeql-action/upload-sarif@v3
if: success()
with:
sarif_file: results.sarif
category: nuclei-results
रिपोर्टिंग के साथ सेटअप
- uses: projectdiscovery/nuclei-action@v3
with:
args: -u http://scanme.sh
config: |
report-config: issue-tracker-config.yaml
env:
GITHUB_BASE_URL: https://localhost:8443/github
GITHUB_USERNAME: test-username
GITHUB_OWNER: test-owner
GITHUB_TOKEN: ${{ secrets.GITHUB_PAT }}
GITHUB_PROJECT_NAME: test-project
issue-tracker-config.yaml (रिपॉजिटरी फ़ाइल):github:
# base-url is the optional self-hosted GitHub application url
base-url: $GITHUB_BASE_URL # read from environment variable
# username is the username of the GitHub user
username: $GITHUB_USERNAME # read from environment variable
# owner is the owner name of the repository for issues
owner: $GITHUB_OWNER # read from environment variable
# token is the token for GitHub account
token: $GITHUB_TOKEN # read from environment variable
# project-name is the name of the repository
project-name: $GITHUB_PROJECT_NAME # read from environment variable
# issue-label is the label of the created issue type
issue-label: bug
# allow-list sets a tracker level filter to only create issues for templates with
# these severity labels or tags (does not affect exporters. set those globally)
allow-list:
severity: high, critical
tags: network
# deny-list sets a tracker level filter to never create issues for templates with
# these severity labels or tags (does not affect exporters. set those globally)
deny-list:
severity: low
# duplicate-issue-check flag to enable duplicate tracking issue check.
duplicate-issue-check: false
https://github.com/projectdiscovery/nuclei/blob/dev/cmd/nuclei/issue-tracker-config.yaml देखें।
हम योगदान का स्वागत करते हैं! कृपया आरंभ करने के तरीके के बारे में विवरण के लिए हमारा योगदान गाइड देखें।
MIT. अधिक जानकारी के लिए LICENSE देखें।
| name | description | required | default |
|---|
version | विशिष्ट संस्करण के साथ सेटअप करें ("latest" या "vX.Y.Z" प्रारूप में)। | true | latest |
install-only | स्कैन चलाए बिना Nuclei इंस्टॉल करें। | false | false |
args | Nuclei को देने के लिए तर्क। | false | "" |
config | Nuclei कॉन्फ़िगरेशन फ़ाइल सामग्री। | false | "" |
config-path | Nuclei कॉन्फ़िगरेशन फ़ाइल का पथ। | false | "" |
cache | Nuclei कैश, कॉन्फ़िगरेशन, टेम्पलेट और ब्राउज़र की कैशिंग सक्षम करें। | false | true |
token | GitHub टोकन। इसका उपयोग GitHub से Nuclei रिलीज़ लाने के लिए किया जाता है। | true | ${{ github.token }} |