Skip to content

Commit

Permalink
Merge pull request #5 from depot/oidc-endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Dec 16, 2022
2 parents 777406d + 47c0aa7 commit ad05a75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ad05a75

Please sign in to comment.