@@ -54,6 +54,7 @@ export class OidcUtils {
5454 // // core.debug('Using CLI exchange-oidc-token..');
5555 // // return await this.exchangeOIDCTokenAndExportStepOutputs(jfrogCredentials);
5656 // // }r backward compatibility
57+
5758 core . debug ( 'Using Manual OIDC Auth Method..' ) ;
5859 // Exchanges the token and set as access token in the credential's object
5960 let token : string | undefined = await this . manualExchangeOidc ( jfrogCredentials ) ;
@@ -154,8 +155,10 @@ export class OidcUtils {
154155 }
155156
156157 public static setOidcStepOutputs ( username : string , accessToken : string ) : void {
157- core . setSecret ( accessToken ) ;
158- core . setSecret ( username ) ;
158+ // core.setSecret(accessToken);
159+ // core.setSecret(username);
160+ core . info ( "settings outputs : 'oidc-token' and 'oidc-user'" ) ;
161+ core . info ( `oidc-user: ${ username } ` ) ;
159162 core . setOutput ( 'oidc-token' , accessToken ) ;
160163 core . setOutput ( 'oidc-user' , username ) ;
161164 }
@@ -179,8 +182,8 @@ export class OidcUtils {
179182 return subject . substring ( lastSlashIndex + 1 ) ;
180183 }
181184 // No parsing was needed, returning original sub from the token as the user
182- console . log ( 'THIS IS THE EXTRACTED USER:' ) ;
183- console . log ( subject ) ;
185+ core . info ( 'THIS IS THE EXTRACTED USER:' ) ;
186+ core . info ( subject ) ;
184187 return subject ;
185188 }
186189
0 commit comments