Skip to content

Commit 3b0b845

Browse files
committed
Some more suggestions from CR
1 parent 020856c commit 3b0b845

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/setup-codeql.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,10 @@ export async function getCodeQLSource(
427427
Feature.AllowToolcacheInput,
428428
);
429429
const allowToolcacheValue =
430-
toolsInputFromRepositoryProperty ||
431-
(allowToolcacheValueFF && (isDynamicWorkflow() || util.isInTestMode()));
430+
allowToolcacheValueFF &&
431+
(toolsInputFromRepositoryProperty ||
432+
isDynamicWorkflow() ||
433+
util.isInTestMode());
432434
if (allowToolcacheValue) {
433435
// If `toolsInput === "toolcache"`, try to find the latest version of the CLI that's available in the toolcache
434436
// and use that. We perform this check here since we can set `cliVersion` directly and don't want to default to

0 commit comments

Comments
 (0)