File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -125,17 +125,13 @@ class Utils {
125125 const exchangeUrl = jfrogCredentials . jfrogUrl . replace ( / \/ $ / , '' ) + '/access/api/v1/oidc/token' ;
126126 core . debug ( 'Exchanging GitHub JSON web token with a JFrog access token...' ) ;
127127 let projectKey = process . env . JF_PROJECT || '' ;
128- let jobId = process . env . GITHUB_JOB || '' ;
129- let runId = process . env . GITHUB_RUN_ID || '' ;
130128 const httpClient = new http_client_1 . HttpClient ( ) ;
131129 const data = `{
132130 "grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
133131 "subject_token_type": "urn:ietf:params:oauth:token-type:id_token",
134132 "subject_token": "${ jsonWebToken } ",
135133 "provider_name": "${ oidcProviderName } ",
136- "project_key": "${ projectKey } ",
137- "gh_job_id": "${ jobId } ",
138- "gh_run_id": "${ runId } ",
134+ "project_key": "${ projectKey } "
139135 }` ;
140136 const additionalHeaders = {
141137 'Content-Type' : 'application/json' ,
Original file line number Diff line number Diff line change @@ -161,8 +161,6 @@ export class Utils {
161161 "subject_token": "${ jsonWebToken } ",
162162 "provider_name": "${ oidcProviderName } ",
163163 "project_key": "${ projectKey } ",
164- "gh_job_id": "${ jobId } ",
165- "gh_run_id": "${ runId } ",
166164 }` ;
167165
168166 const additionalHeaders : OutgoingHttpHeaders = {
You can’t perform that action at this time.
0 commit comments