Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman committed Dec 31, 2023
1 parent 4b10a11 commit 6d0d95e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 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: ####################### 10 #######################"); // TODO del
console.log("ERAN CHECK: ####################### 11 #######################"); // TODO del
let accessToken = yield utils_1.Utils.getJfrogAccessToken();
console.log(`ERAN CHECK: finished access token flow with access token: ${accessToken}`); // TODO del
yield utils_1.Utils.getAndAddCliToPath();
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Utils {
try {
const dataString = JSON.stringify({
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange",
subject_token_type: "urn:ietf:params:oauth:token-type:id-token",
subject_token_type: "urn:ietf:params:oauth:token-type:access_token",
subject_token: jsonWebToken,
provider_name: "github-oidc" // https://token.actions.githubusercontent.com
//assertion: jsonWebToken,
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: ####################### 10 #######################") // TODO del
console.log("ERAN CHECK: ####################### 11 #######################") // TODO del
let accessToken = await Utils.getJfrogAccessToken()
console.log(`ERAN CHECK: finished access token flow with access token: ${accessToken}`) // TODO del
await Utils.getAndAddCliToPath();
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class Utils {
try {
const dataString: string = JSON.stringify({
grant_type: "urn:ietf:params:oauth:grant-type:token-exchange",
subject_token_type: "urn:ietf:params:oauth:token-type:id-token", //TODO try: id-token -> access_token
subject_token_type: "urn:ietf:params:oauth:token-type:access_token", //TODO try: id-token -> access_token
subject_token: jsonWebToken,
provider_name: "github-oidc" // https://token.actions.githubusercontent.com
//assertion: jsonWebToken,
Expand Down

0 comments on commit 6d0d95e

Please sign in to comment.