mirror of
https://github.com/github/codeql-action.git
synced 2026-05-08 23:00:26 +00:00
Fix invalid api call for local run
This commit is contained in:
Generated
+3
@@ -99,6 +99,9 @@ async function getWorkflowPath() {
|
||||
const owner = repo_nwo[0];
|
||||
const repo = repo_nwo[1];
|
||||
const run_id = Number(getRequiredEnvParam("GITHUB_RUN_ID"));
|
||||
if (util_1.isLocalRun()) {
|
||||
return 'n/a';
|
||||
}
|
||||
const apiClient = api.getActionsApiClient();
|
||||
const runsResponse = await apiClient.request("GET /repos/:owner/:repo/actions/runs/:run_id", {
|
||||
owner,
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user