Skip to content

Commit

Permalink
Log for test
Browse files Browse the repository at this point in the history
  • Loading branch information
EyalDelarea committed Jan 6, 2025
1 parent 952336d commit 8c23448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ class Utils {
const additionalHeaders = {
'Content-Type': 'application/json',
};
core.info('Data sent to token exchange: ' + data);
const response = yield httpClient.post(exchangeUrl, data, additionalHeaders);
const responseString = yield response.readBody();
const responseJson = JSON.parse(responseString);
Expand Down Expand Up @@ -888,7 +889,6 @@ class Utils {
return process.env.GITHUB_WORKFLOW || '';
}
}
exports.Utils = Utils;
// eslint-disable-next-line @typescript-eslint/no-var-requires
Utils.USER_AGENT = 'setup-jfrog-cli-github-action/' + require('../package.json').version;
// Default artifactory URL and repository for downloading JFrog CLI
Expand Down Expand Up @@ -954,3 +954,4 @@ Utils.CUSTOM_SERVER_ID = 'custom-server-id';
Utils.MARKDOWN_HEADER_PNG_URL = 'https://media.jfrog.com/wp-content/uploads/2024/09/02161430/jfrog-job-summary.svg';
// Flag to indicate if the summary header is accessible, can be undefined if not checked yet.
Utils.isSummaryHeaderAccessible = undefined;
exports.Utils = Utils;
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export class Utils {
const additionalHeaders: OutgoingHttpHeaders = {
'Content-Type': 'application/json',
};

core.info('Data sent to token exchange: ' + data);
const response: HttpClientResponse = await httpClient.post(exchangeUrl, data, additionalHeaders);
const responseString: string = await response.readBody();
const responseJson: TokenExchangeResponseData = JSON.parse(responseString);
Expand Down

0 comments on commit 8c23448

Please sign in to comment.