Skip to content

Commit d788a32

Browse files
authored
Revert - New OIDC fields added, including the GitHub job name and run ID (#229)
1 parent 73cafc9 commit d788a32

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

lib/utils.js

+1-5
Original file line numberDiff line numberDiff 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',

src/utils.ts

-2
Original file line numberDiff line numberDiff 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 = {

0 commit comments

Comments
 (0)