From a4f9f6fc121605c2b77d8dd9d562eb148dba7c13 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Tue, 6 Oct 2026 16:11:27 +0100 Subject: [PATCH] Type the `assetKind` parameter --- src/setup/repository.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/setup/repository.ts b/src/setup/repository.ts index 53ca44f3e..4101be677 100644 --- a/src/setup/repository.ts +++ b/src/setup/repository.ts @@ -51,6 +51,9 @@ const isSameDownloadSource = ( /** A download URL is represented as a string. */ export type DownloadURL = string; +/** Enumerates log-friendly descriptions of different kinds of assets we might look for in releases. */ +export type ReleaseAssetKind = "CodeQL bundle" | "private registry proxy"; + /** * Tries to find a download URL for `assetName` in a release tagged with `tagName`. * @@ -73,7 +76,7 @@ export async function getCodeQLAssetDownloadURL( apiDetails: api.GitHubApiDetails, tagName: string, assetName: string, - assetKind: "CodeQL bundle" = "CodeQL bundle", + assetKind: ReleaseAssetKind = "CodeQL bundle", ): Promise { const codeQLActionRepository = getCodeQLActionRepository(action);