mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
Use getRefFromEnv() so ref is present on default setup
This commit is contained in:
Generated
+1
-1
@@ -490,7 +490,7 @@ async function isAnalyzingDefaultBranch() {
|
||||
const event = getWorkflowEvent();
|
||||
let defaultBranch = event?.repository?.default_branch;
|
||||
if (process.env.GITHUB_EVENT_NAME === "schedule") {
|
||||
defaultBranch = removeRefsHeadsPrefix((0, util_1.getRequiredEnvParam)("GITHUB_REF"));
|
||||
defaultBranch = removeRefsHeadsPrefix(getRefFromEnv());
|
||||
}
|
||||
return currentRef === defaultBranch;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user