@@ -11,53 +11,67 @@ Integrate all of your [Nuclei Templates](https://github.com/projectdiscovery/nuc
11
11
Example Usage
12
12
-----
13
13
14
- ** GitHub Action running nuclei on single URL**
14
+ ** GitHub Action running Nuclei on single URL**
15
15
16
16
``` yaml
17
- - name : Nuclei Scan
18
- uses : projectdiscovery/nuclei-action@v1.0.1
17
+ - name : Nuclei - DAST Scan
18
+ uses : projectdiscovery/nuclei-action@main
19
19
with :
20
20
target : https://example.com
21
21
` ` `
22
22
23
- **GitHub Action running nuclei with custom templates**
23
+ **GitHub Action running Nuclei with custom templates**
24
24
25
25
` ` ` yaml
26
- - name : Nuclei Scan
27
- uses : projectdiscovery/nuclei-action@v1.0.1
26
+ - name : Nuclei - DAST Scan
27
+ uses : projectdiscovery/nuclei-action@main
28
28
with :
29
29
target : https://example.com
30
30
templates : custom_template_path
31
31
` ` `
32
32
33
33
<ins>As default, all the default [nuclei-templates](https://github.com/projectdiscovery/nuclei-templates) are used for scan.</ins>
34
34
35
- **GitHub Action running nuclei on multiple URLs**
35
+ **GitHub Action running Nuclei on multiple URLs**
36
36
37
37
` ` ` yaml
38
- - name : Nuclei Scan
39
- uses : projectdiscovery/nuclei-action@v1.0.1
38
+ - name : Nuclei - DAST Scan
39
+ uses : projectdiscovery/nuclei-action@main
40
40
with :
41
41
urls : urls.txt
42
42
` ` `
43
43
44
- **GitHub Example Action running nuclei with GitHub Issue reporting**
44
+ **GitHub Example Action running Nuclei with GitHub Issue reporting**
45
45
46
46
` ` ` yaml
47
- - name : Nuclei Scan
48
- uses : projectdiscovery/nuclei-action@v1.0.1
47
+ - name : Nuclei - DAST Scan
48
+ uses : projectdiscovery/nuclei-action@main
49
49
with :
50
50
target : https://example.com
51
51
github-report : true
52
52
github-token : ${{ secrets.GITHUB_TOKEN }}
53
53
` ` `
54
54
55
+ **GitHub Example Action running Nuclei with GitHub Security Dashboard reporting**
55
56
56
- Workflow - ` .github/workflows/nuclei.yml`
57
+ ` ` ` yaml
58
+ - name : Nuclei - DAST Scan
59
+ uses : projectdiscovery/nuclei-action@main
60
+ with :
61
+ target : https://example.com
62
+
63
+ - name : GitHub Security Dashboard Alerts
64
+ uses : github/codeql-action/upload-sarif@v1
65
+ with :
66
+ sarif_file : nuclei.sarif
67
+ ` ` `
68
+
69
+
70
+ **Workflow** - ` .github/workflows/nuclei.yml`
57
71
58
72
59
73
` ` ` yaml
60
- name: Nuclei - DAST
74
+ name: Nuclei - DAST Scan
61
75
62
76
on:
63
77
schedule:
@@ -73,29 +87,38 @@ jobs:
73
87
with:
74
88
go-version: 1.15
75
89
76
- - name: Nuclei Scan
77
- uses: projectdiscovery/nuclei-action@v1.0.1
90
+ - name: Nuclei - DAST Scan
91
+ uses: projectdiscovery/nuclei-action@main
78
92
with:
79
93
target: https://example.com
80
94
95
+ - name: GitHub Workflow artifacts
81
96
- uses: actions/upload-artifact@v2
82
97
with:
83
98
name: nuclei.log
84
99
path: nuclei.log
100
+
101
+ - name: GitHub Security Dashboard Alerts update
102
+ uses: github/codeql-action/upload-sarif@v1
103
+ with:
104
+ sarif_file: nuclei.sarif
85
105
` ` `
86
106
87
107
Available Inputs
88
108
------
89
109
90
- | Key | Description | Required |
91
- | --------------- | --------------------------------------------------- | -------- |
92
- | `target` | Target URL to run nuclei scan | true |
93
- | `urls` | List of urls to run nuclei scan | false |
94
- | `templates` | Custom templates directory/file to run nuclei scan | false |
95
- | `output` | File to save output result (default - nuclei.log) | false |
96
- | `json` | Write results in JSON format | false |
97
- | `include-rr` | Include request/response in results | false |
98
- | `config` | Set custom nuclei config file to use | false |
99
- | `user-agent` | Set custom user-agent header | false |
100
- | `github-report` | Set `true` to generate Github issue with the report | false |
101
- | `github-token` | Set the Github Token | false |
110
+ | Key | Description | Required |
111
+ | ----------------- | --------------------------------------------------- | -------- |
112
+ | `target` | Target URL to run nuclei scan | true |
113
+ | `urls` | List of urls to run nuclei scan | false |
114
+ | `templates` | Custom templates directory/file to run nuclei scan | false |
115
+ | `output` | File to save output result (default - nuclei.log) | false |
116
+ | `json` | Write results in JSON format | false |
117
+ | `include-rr` | Include request/response in results | false |
118
+ | `config` | Set custom nuclei config file to use | false |
119
+ | `user-agent` | Set custom user-agent header | false |
120
+ | `github-report` | Set `true` to generate Github issue with the report | false |
121
+ | `github-token` | Set the Github Token | false |
122
+ | `sarif-export` | File to export result (default - sarif.nuclei) | false |
123
+ | `markdown-export` | Directory to export markdown results | false |
124
+ | `nuclei-flags` | More Nuclei CLI flags to use | false |
0 commit comments