mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
Update src/api-client.ts
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com>
This commit is contained in:
@@ -140,7 +140,7 @@ export async function getWorkflowRelativePath(): Promise<string> {
|
||||
const workflowUrl = runsResponse.data.workflow_url;
|
||||
|
||||
const requiredWorkflowRegex = /\/repos\/[^/]+\/[^/]+\/actions\/required_workflows\/[^/]+/;
|
||||
if (!workflowUrl || workflowUrl === "" || requiredWorkflowRegex.test(workflowUrl)) {
|
||||
if (!workflowUrl || requiredWorkflowRegex.test(workflowUrl)) {
|
||||
// For required workflows, the workflowUrl is invalid so we cannot fetch more informations
|
||||
// about the workflow.
|
||||
// However, the path is available in the original response.
|
||||
|
||||
Reference in New Issue
Block a user