From 47c0aa7972237215feb476e0d9e17e99264a85bb Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Fri, 16 Dec 2022 16:09:21 +0000 Subject: [PATCH] Use new endpoint for OIDC auth --- dist/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index d6776a6..e145ddb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5459,7 +5459,7 @@ async function run() { if (!process.env.DEPOT_TOKEN) { try { const odicToken = await core.getIDToken('https://depot.dev'); - const res = await client.postJson('https://depot.dev/api/auth/oidc/github-actions', { token: odicToken }); + const res = await client.postJson('https://github.depot.dev/auth/oidc/github-actions', { token: odicToken }); if (res.result && res.result.token) { core.info(`Exchanged GitHub Actions OIDC token for temporary Depot token`); core.exportVariable('DEPOT_TOKEN', res.result.token); diff --git a/src/index.ts b/src/index.ts index b429d1e..70d0d3c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,7 @@ async function run() { try { const odicToken = await core.getIDToken('https://depot.dev') const res = await client.postJson<{ok: boolean; token: string}>( - 'https://depot.dev/api/auth/oidc/github-actions', + 'https://github.depot.dev/auth/oidc/github-actions', {token: odicToken}, ) if (res.result && res.result.token) {