Automatically pull API URL from context
Some checks failed
Check Transpiled JavaScript / Check dist/ (push) Failing after 37s
build-test / build (20, ubuntu-latest) (push) Failing after 26s
build-test / test (20, ubuntu-latest) (push) Failing after 15s
build-test / build (20, macos-latest) (push) Has been cancelled
build-test / build-on-windows (20) (push) Has been cancelled
build-test / test (20, macos-latest) (push) Has been cancelled

This commit is contained in:
Dark Steveneq
2026-01-20 09:50:10 +01:00
parent 68352b848f
commit dcb52e1b7d

View File

@@ -68,11 +68,12 @@ export async function run(): Promise<void> {
if (audit.foundVulnerability()) { if (audit.foundVulnerability()) {
// vulnerabilities are found // vulnerabilities are found
core.debug(github.context.apiUrl);
// get GitHub information // get GitHub information
const ctx = JSON.parse(core.getInput('gitea_context')) 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 token: string = core.getInput('gitea_token', { required: true })
const api = giteaApi(baseUrl, { const api = giteaApi(github.context.apiUrl, {
token: token token: token
}) })