File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 77 required : false
88 default : ' .'
99 target :
10- description : ' One of old or new to represent which is being analyzed'
10+ description : ' One of push, old or new to represent which is being analyzed'
1111 required : false
1212 debug :
1313 description : ' Set to true to enable debug logging'
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ async function runAnalysis() {
5151 'sca' ,
5252 'scan' ,
5353 '.' ,
54- '--save-results' ,
5554 '-o' ,
5655 scaDir ,
5756 '--formats' ,
@@ -61,6 +60,9 @@ async function runAnalysis() {
6160 '--keyring' ,
6261 trustedKeys ,
6362 ]
63+ if ( target === 'push' ) {
64+ args . push ( '--save-results' )
65+ }
6466 if ( indirectDeps . toLowerCase ( ) === 'false' ) {
6567 args . push ( '--eval-direct-only' )
6668 }
You can’t perform that action at this time.
0 commit comments