mirror of
https://github.com/github/codeql-action.git
synced 2025-12-28 18:20:08 +08:00
Add the feature to bypass the toolcache for kotlin and swift
This works by moving the logic to check for toolcache bypass out of creating the codeql instance. The logic now _may_ perform an API request in order to check what languages are in the repository. This check is redundant because the same call is being made later in the action when the actual list of languages is calculated.
This commit is contained in:
@@ -20,7 +20,7 @@ export async function initCodeQL(
|
||||
apiDetails: GitHubApiDetails,
|
||||
tempDir: string,
|
||||
variant: util.GitHubVariant,
|
||||
featureEnablement: FeatureEnablement,
|
||||
bypassToolcache: boolean,
|
||||
logger: Logger
|
||||
): Promise<{ codeql: CodeQL; toolsVersion: string }> {
|
||||
logger.startGroup("Setup CodeQL tools");
|
||||
@@ -29,7 +29,7 @@ export async function initCodeQL(
|
||||
apiDetails,
|
||||
tempDir,
|
||||
variant,
|
||||
featureEnablement,
|
||||
bypassToolcache,
|
||||
logger,
|
||||
true
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user