Skip to content

Commit

Permalink
Rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
yahavi committed Jan 21, 2024
1 parent 60e4358 commit 29aa480
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 @@ -98,7 +98,7 @@ class Utils {
return jfrogCredentials;
}
/**
* Exchanges JWT with a valid access token
* Exchanges GitHub JWT with a valid JFrog access token
* @param jfrogCredentials existing JFrog credentials - url, access token, username + password
* @param jsonWebToken JWT achieved from GitHub JWT provider
* @param oidcProviderName OIDC provider name
Expand All @@ -108,7 +108,7 @@ class Utils {
return __awaiter(this, void 0, void 0, function* () {
// If we've reached this stage, the jfrogCredentials.jfrogUrl field should hold a non-empty value obtained from process.env.JF_URL
const exchangeUrl = jfrogCredentials.jfrogUrl.replace(/\/$/, '') + '/access/api/v1/oidc/token';
core.debug('Exchanging JSON web token with an access token');
core.debug('Exchanging GitHub JSON web token with a JFrog access token...');
const httpClient = new http_client_1.HttpClient();
const data = `{
"grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class Utils {
}

/**
* Exchanges JWT with a valid access token
* Exchanges GitHub JWT with a valid JFrog access token
* @param jfrogCredentials existing JFrog credentials - url, access token, username + password
* @param jsonWebToken JWT achieved from GitHub JWT provider
* @param oidcProviderName OIDC provider name
Expand All @@ -112,7 +112,7 @@ export class Utils {
): Promise<JfrogCredentials> {
// If we've reached this stage, the jfrogCredentials.jfrogUrl field should hold a non-empty value obtained from process.env.JF_URL
const exchangeUrl: string = jfrogCredentials.jfrogUrl!.replace(/\/$/, '') + '/access/api/v1/oidc/token';
core.debug('Exchanging JSON web token with an access token');
core.debug('Exchanging GitHub JSON web token with a JFrog access token...');

const httpClient: HttpClient = new HttpClient();
const data: string = `{
Expand Down

0 comments on commit 29aa480

Please sign in to comment.