File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -100,9 +100,17 @@ export class NpmToolRunner extends tr.ToolRunner {
100100 options . env [ 'NPM_CONFIG_USERCONFIG' ] = this . npmrc ;
101101 }
102102
103+ function sanitizeUrl ( url : string ) : string {
104+ const parsed = parse ( url ) ;
105+ if ( parsed . auth ) {
106+ parsed . auth = "***:***" ;
107+ }
108+ return format ( parsed ) ;
109+ }
110+
103111 let proxy = NpmToolRunner . _getProxyFromEnvironment ( ) ;
104112 if ( proxy ) {
105- tl . debug ( `Using proxy "${ proxy } " for npm` ) ;
113+ tl . debug ( `Using proxy "${ sanitizeUrl ( proxy ) } " for npm` ) ;
106114 options . env [ 'NPM_CONFIG_PROXY' ] = proxy ;
107115 options . env [ 'NPM_CONFIG_HTTPS-PROXY' ] = proxy ;
108116
Original file line number Diff line number Diff line change 1010 "version" : {
1111 "Major" : 1 ,
1212 "Minor" : 154 ,
13- "Patch" : 4
13+ "Patch" : 5
1414 },
1515 "runsOn" : [
1616 " Agent" ,
Original file line number Diff line number Diff line change 1010 "version" : {
1111 "Major" : 1 ,
1212 "Minor" : 154 ,
13- "Patch" : 4
13+ "Patch" : 5
1414 },
1515 "runsOn" : [
1616 " Agent" ,
You can’t perform that action at this time.
0 commit comments