From dcb52e1b7d460066a5e4768f3ce30907ba7d04ce Mon Sep 17 00:00:00 2001 From: Dark Steveneq Date: Tue, 20 Jan 2026 09:50:10 +0100 Subject: [PATCH] Automatically pull API URL from context --- src/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index f2d4191..847d916 100644 --- a/src/main.ts +++ b/src/main.ts @@ -68,11 +68,12 @@ export async function run(): Promise { if (audit.foundVulnerability()) { // vulnerabilities are found + core.debug(github.context.apiUrl); + // get GitHub information const ctx = JSON.parse(core.getInput('gitea_context')) - const baseUrl: string = core.getInput('gitea_url', { required: true }) const token: string = core.getInput('gitea_token', { required: true }) - const api = giteaApi(baseUrl, { + const api = giteaApi(github.context.apiUrl, { token: token })