File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ inputs:
14
14
required : false
15
15
16
16
templates :
17
- description : " Templates input file/files to check across hosts"
17
+ description : " Templates input file(s)/URL to check across hosts"
18
18
required : false
19
19
20
20
workflows :
Original file line number Diff line number Diff line change @@ -52,7 +52,15 @@ async function run() {
52
52
// Setting up params
53
53
if ( target ) params . push ( `-target=${ target } ` ) ;
54
54
if ( urls ) params . push ( `-list=${ urls } ` ) ;
55
- if ( templates ) params . push ( `-t=${ templates } ` ) ;
55
+ if ( templates ) {
56
+ try {
57
+ new URL ( templates )
58
+ params . push ( `-turl=${ templates } ` ) ;
59
+ }
60
+ catch ( _ ) {
61
+ params . push ( `-t=${ templates } ` ) ;
62
+ }
63
+ }
56
64
if ( workflows ) params . push ( `-w=${ workflows } ` ) ;
57
65
params . push ( `-se=${ sarifExport ? sarifExport : 'nuclei.sarif' } ` ) ;
58
66
if ( markdownExport ) params . push ( `-me=${ markdownExport } ` ) ;
You can’t perform that action at this time.
0 commit comments