File tree 1 file changed +6
-3
lines changed
forge/actions/discovery/src
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ async function run() {
7
7
const filters = core . getInput ( "filters" , { required : false } ) ;
8
8
9
9
const args = [ "-vv" , "scan" ] ;
10
- args . push ( filtersToArgs ( filters ) ) ;
10
+ args . concat ( filtersToArgs ( filters ) )
11
11
args . push ( path ) ;
12
12
13
13
core . info ( `Running forge ${ args . join ( " " ) } ` ) ;
@@ -18,6 +18,9 @@ async function run() {
18
18
stdout : ( data ) => {
19
19
stdout += data . toString ( ) ;
20
20
} ,
21
+ stderr : ( data ) => {
22
+ console . log ( data . toString ( ) ) ;
23
+ }
21
24
} ;
22
25
23
26
await exec . exec ( 'forge' , args , options ) ;
@@ -36,9 +39,9 @@ function filtersToArgs(input) {
36
39
const lines = input . trim ( ) . split ( "\n" ) ;
37
40
38
41
const result = [ ] ;
39
- lines . forEach ( ( line ) => {
42
+ for ( const line of lines ) {
40
43
result . push ( "-f" , line ) ;
41
- } ) ;
44
+ }
42
45
43
46
return result ;
44
47
}
You can’t perform that action at this time.
0 commit comments