Restrict TRAP cache cleanup to analyzed language

This commit is contained in:
Henry Mercer 2024-05-21 16:33:20 +01:00
parent cc96c825ba
commit 087f0b04c6
5 changed files with 48 additions and 21 deletions

View file

@ -196,8 +196,15 @@ export function computeAutomationID(
return automationID;
}
export interface ActionsCacheItem {
key?: string | undefined;
}
/** List all Actions cache entries matching the provided key and ref. */
export async function listActionsCaches(key: string, ref: string) {
export async function listActionsCaches(
key: string,
ref: string,
): Promise<ActionsCacheItem[]> {
const repositoryNwo = parseRepositoryNwo(
getRequiredEnvParam("GITHUB_REPOSITORY"),
);