From d264ea08991f0e5111aa1998679cb29c0a0614dd Mon Sep 17 00:00:00 2001 From: Edwin Sirko Date: Fri, 26 Jan 2024 13:05:35 -0500 Subject: [PATCH] now properly getting the CR URL --- src/main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index fa0322c..8a6a1d2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -39,12 +39,9 @@ export async function run(pathInput: string): Promise { } const token: string = process.env.TOKEN! - // TODO: once https://github.com/github/github/pull/309384 goes in, we can switch to the actual endpoint - //const response = await fetch( - // process.env.GITHUB_API_URL + '/packages/container-registry-url' - //) + const response = await fetch( - 'http://echo.jsontest.com/url/https:ghcr.io' // for testing locally. Remove the slashes, they will be reintroduced when forming the URL object below + process.env.GITHUB_API_URL + '/packages/container-registry-url' ) if (!response.ok) { throw new Error(`Failed to fetch status page: ${response.statusText}`)