🤖 Nuclei Action Test #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🤖 Nuclei Action Test | |
on: | |
workflow_dispatch: | |
permissions: | |
issues: write | |
jobs: | |
nuclei-scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Nuclei - Vulnerability Scan - with projectdiscovery/main (existing) | |
uses: projectdiscovery/nuclei-action@main | |
with: | |
target: https://example.com | |
flags: "-v -debug" | |
templates: custom-templates/test.yaml | |
report-config: github-report.yml # without github username,token config fields... | |
continue-on-error: true | |
- name: Nuclei - Vulnerability Scan - with fisehara/merge-github-report-config-files (new) | |
uses: fisehara/nuclei-action@fisehara/merge-github-report-config-files | |
with: | |
target: https://example.com | |
flags: "-v -debug" | |
templates: custom-templates/test.yaml | |
report-config: github-report.yml # without github owner,token config fields... | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create GitHub Issue | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
curl -X POST -H "Authorization: token $GITHUB_TOKEN" -d '{"title":"New Issue","body":"This is a new issue created by the workflow."}' https://api.github.com/repos/RamanaReddy0M/workflow-test/issues | |
# - name: Nuclei - Vulnerability Scan - with multiple flags (test) | |
# uses: felipesaezreyes/nuclei-action@fix-flags-regex | |
# with: | |
# target: https://example.com | |
# flags: "-rate-limit 10 -mhe 2" | |
# templates: custom-templates/test.yaml | |
# - name: Debug with tmate session | |
# uses: mxschmitt/action-tmate@v3 |