Skip to content

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Jan 21, 2024
1 parent d21f76a commit 60e4358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Utils {
/**
* Retrieves server credentials for accessing JFrog's server
* searching for existing environment variables such as JF_ACCESS_TOKEN or the combination of JF_USER and JF_PASSWORD.
* If neither is found, and if the request and requester are authorized, it generates an access token for the specified JFrog's server using the OpenID Connect mechanism.
* If the 'oidc-provider-name' argument was provided, it generates an access token for the specified JFrog's server using the OpenID Connect mechanism.
* @returns JfrogCredentials struct filled with collected credentials
*/
static getJfrogCredentials() {
Expand All @@ -59,7 +59,7 @@ class Utils {
if (!jfrogCredentials.jfrogUrl) {
throw new Error(`JF_URL must be provided when oidc-provider-name is specified`);
}
core.info('Obtaining an access token through OpenID Connect.');
core.info('Obtaining an access token through OpenID Connect...');
const audience = core.getInput(Utils.OIDC_AUDIENCE_ARG);
let jsonWebToken;
try {
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Utils {
/**
* Retrieves server credentials for accessing JFrog's server
* searching for existing environment variables such as JF_ACCESS_TOKEN or the combination of JF_USER and JF_PASSWORD.
* If neither is found, and if the request and requester are authorized, it generates an access token for the specified JFrog's server using the OpenID Connect mechanism.
* If the 'oidc-provider-name' argument was provided, it generates an access token for the specified JFrog's server using the OpenID Connect mechanism.
* @returns JfrogCredentials struct filled with collected credentials
*/
public static async getJfrogCredentials(): Promise<JfrogCredentials> {
Expand All @@ -59,7 +59,7 @@ export class Utils {
if (!jfrogCredentials.jfrogUrl) {
throw new Error(`JF_URL must be provided when oidc-provider-name is specified`);
}
core.info('Obtaining an access token through OpenID Connect.');
core.info('Obtaining an access token through OpenID Connect...');
const audience: string = core.getInput(Utils.OIDC_AUDIENCE_ARG);
let jsonWebToken: string | undefined;
try {
Expand Down

0 comments on commit 60e4358

Please sign in to comment.