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
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:
@@ -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
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user