From d93b0f9ffb7c1390f3a4fd5d3b561e10ea763c66 Mon Sep 17 00:00:00 2001 From: eyalbe4 Date: Fri, 29 Nov 2024 09:59:30 +0200 Subject: [PATCH] Check failing tests --- lib/utils.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 3b96ecda2..0fe8d85e0 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -125,17 +125,13 @@ class Utils { const exchangeUrl = jfrogCredentials.jfrogUrl.replace(/\/$/, '') + '/access/api/v1/oidc/token'; core.debug('Exchanging GitHub JSON web token with a JFrog access token...'); let projectKey = process.env.JF_PROJECT || ''; - let jobId = process.env.GITHUB_JOB || ''; - let runId = process.env.GITHUB_RUN_ID || ''; const httpClient = new http_client_1.HttpClient(); const data = `{ "grant_type": "urn:ietf:params:oauth:grant-type:token-exchange", "subject_token_type": "urn:ietf:params:oauth:token-type:id_token", "subject_token": "${jsonWebToken}", "provider_name": "${oidcProviderName}", - "project_key": "${projectKey}", - "gh_job_id": "${jobId}", - "gh_run_id": "${runId}", + "project_key": "${projectKey}" }`; const additionalHeaders = { 'Content-Type': 'application/json',