Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Jan 3, 2024
1 parent 80c4341 commit cf19438
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function main() {
try {
core.startGroup('Setup JFrog CLI');
utils_1.Utils.setCliEnv();
console.log("ERAN CHECK: ####################### 30 #######################"); // TODO del
console.log("ERAN CHECK: ####################### 31 #######################"); // TODO del
let accessToken = yield utils_1.Utils.getJfrogAccessToken(); //TODO make it return a struct with: username, password and access_token, jfrog url
console.log(`ERAN CHECK: finished access token flow with access token: ${accessToken}`); // TODO del
yield utils_1.Utils.getAndAddCliToPath();
Expand Down
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class Utils {
try {
console.log("Fetching JSON web token");
jsonWebToken = yield core.getIDToken(audience); // print char 1-10 and 11-end and add them app (try to laavod on actions)
console.log("ERAN CHECK - token part 1: " + jsonWebToken.substring(0, 10));
console.log("ERAN CHECK - token part 2: " + jsonWebToken.substring(11));
console.log("ERAN CHECK - token part 1: " + jsonWebToken.substring(0, 5));
console.log("ERAN CHECK - token part 2: " + jsonWebToken.substring(6));
}
catch (error) {
throw new Error(`getting openID Connect JSON web token failed: ${error.message}`);
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ async function main() {
try {
core.startGroup('Setup JFrog CLI');
Utils.setCliEnv();
console.log("ERAN CHECK: ####################### 30 #######################") // TODO del
console.log("ERAN CHECK: ####################### 31 #######################") // TODO del
let accessToken :string = await Utils.getJfrogAccessToken() //TODO make it return a struct with: username, password and access_token, jfrog url
console.log(`ERAN CHECK: finished access token flow with access token: ${accessToken}`) // TODO del
await Utils.getAndAddCliToPath();
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export class Utils {
try {
console.log("Fetching JSON web token")
jsonWebToken = await core.getIDToken(audience); // print char 1-10 and 11-end and add them app (try to laavod on actions)
console.log("ERAN CHECK - token part 1: " + jsonWebToken.substring(0,10))
console.log("ERAN CHECK - token part 2: " + jsonWebToken.substring(11))
console.log("ERAN CHECK - token part 1: " + jsonWebToken.substring(0,5))
console.log("ERAN CHECK - token part 2: " + jsonWebToken.substring(6))
} catch (error: any){
throw new Error(`getting openID Connect JSON web token failed: ${error.message}`)
}
Expand Down

0 comments on commit cf19438

Please sign in to comment.