@@ -103,7 +103,7 @@ class ContainerMapping {
103103 core . info ( "Client is not onboarded to Defender for DevOps. Skipping container mapping workload." ) ;
104104 return ;
105105 }
106- core . info ( "Client is onboarded for container mapping" ) ;
106+ core . info ( "Client is onboarded for container mapping. " ) ;
107107 let dockerVersionOutput = yield exec . getExecOutput ( 'docker --version' ) ;
108108 if ( dockerVersionOutput . exitCode != 0 ) {
109109 core . info ( `Unable to get docker version: ${ dockerVersionOutput } ` ) ;
@@ -205,7 +205,6 @@ class ContainerMapping {
205205 }
206206 checkCallerIsCustomer ( bearerToken , retryCount = 0 ) {
207207 return __awaiter ( this , void 0 , void 0 , function * ( ) {
208- core . info ( `Checking if client is onboarded` ) ;
209208 return yield this . _checkCallerIsCustomer ( bearerToken )
210209 . then ( ( statusCode ) => __awaiter ( this , void 0 , void 0 , function * ( ) {
211210 if ( statusCode == 200 ) {
@@ -241,7 +240,6 @@ class ContainerMapping {
241240 _checkCallerIsCustomer ( bearerToken ) {
242241 return __awaiter ( this , void 0 , void 0 , function * ( ) {
243242 return new Promise ( ( resolve , reject ) => __awaiter ( this , void 0 , void 0 , function * ( ) {
244- let apiTime = new Date ( ) . getMilliseconds ( ) ;
245243 let url = "https://dfdinfra-afdendpoint-dogfood-dqgpa4gjagh0arcw.z01.azurefd.net/github/v1/auth-push/GetScanContext?context=authOnly" ;
246244 let options = {
247245 method : 'GET' ,
@@ -254,8 +252,6 @@ class ContainerMapping {
254252 core . debug ( `${ options [ 'method' ] . toUpperCase ( ) } ${ url } ` ) ;
255253 const req = https . request ( url , options , ( res ) => {
256254 res . on ( 'end' , ( ) => {
257- core . debug ( 'API calls finished. Time taken: ' + ( new Date ( ) . getMilliseconds ( ) - apiTime ) + "ms" ) ;
258- core . info ( `Status code: ${ res . statusCode } ${ res . statusMessage } ` ) ;
259255 resolve ( res . statusCode ) ;
260256 } ) ;
261257 res . on ( 'data' , function ( d ) {
0 commit comments