Skip to content

Commit ac359aa

Browse files
committed
Add return type
1 parent 112cd07 commit ac359aa

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/setup-codeql.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,14 @@ function getCanonicalToolcacheVersion(
718718
return cliVersion;
719719
}
720720

721+
interface SetupCodeQLResult {
722+
codeqlFolder: string;
723+
toolsDownloadStatusReport?: ToolsDownloadStatusReport;
724+
toolsSource: ToolsSource;
725+
toolsVersion: string;
726+
zstdAvailability: tar.ZstdAvailability;
727+
}
728+
721729
/**
722730
* Obtains the CodeQL bundle, installs it in the toolcache if appropriate, and extracts it.
723731
*
@@ -731,7 +739,7 @@ export async function setupCodeQLBundle(
731739
defaultCliVersion: CodeQLDefaultVersionInfo,
732740
features: FeatureEnablement,
733741
logger: Logger,
734-
) {
742+
): Promise<SetupCodeQLResult> {
735743
if (!(await util.isBinaryAccessible("tar", logger))) {
736744
throw new util.ConfigurationError(
737745
"Could not find tar in PATH, so unable to extract CodeQL bundle.",

0 commit comments

Comments
 (0)