Skip to content

Commit bdff3e5

Browse files
committed
test
1 parent 1ddfd03 commit bdff3e5

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

lib/oidc-utils.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,10 @@ class OidcUtils {
171171
};
172172
}
173173
static setOidcStepOutputs(username, accessToken) {
174-
core.setSecret(accessToken);
175-
core.setSecret(username);
174+
// core.setSecret(accessToken);
175+
// core.setSecret(username);
176+
core.info("settings outputs : 'oidc-token' and 'oidc-user'");
177+
core.info(`oidc-user: ${username}`);
176178
core.setOutput('oidc-token', accessToken);
177179
core.setOutput('oidc-user', username);
178180
}
@@ -194,8 +196,8 @@ class OidcUtils {
194196
return subject.substring(lastSlashIndex + 1);
195197
}
196198
// No parsing was needed, returning original sub from the token as the user
197-
console.log("THIS IS THE EXTRACTED USER:");
198-
console.log(subject);
199+
core.info('THIS IS THE EXTRACTED USER:');
200+
core.info(subject);
199201
return subject;
200202
}
201203
/**

src/job-summary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class JobSummary {
103103
core.warning(`Failed populating code scanning sarif: ${error}`);
104104
}
105105
}
106-
106+
107107
/**
108108
* Uploads a SARIF (Static Analysis Results Interchange Format) file to GitHub's code scanning API.
109109
* This method handles the communication with GitHub's REST API to populate the code scanning tab with security analysis results.

src/oidc-utils.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)