mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Log key and ref for which we're retrieving caches
This commit is contained in:
3
lib/api-client.js
generated
3
lib/api-client.js
generated
@@ -165,8 +165,9 @@ function computeAutomationID(analysis_key, environment) {
|
||||
}
|
||||
exports.computeAutomationID = computeAutomationID;
|
||||
/** List all Actions cache entries matching the provided key and ref. */
|
||||
async function listActionsCaches(key, ref) {
|
||||
async function listActionsCaches(key, ref, logger) {
|
||||
const repositoryNwo = (0, repository_1.parseRepositoryNwo)((0, util_1.getRequiredEnvParam)("GITHUB_REPOSITORY"));
|
||||
logger.debug(`Retrieving Actions caches for key ${key} and ref ${ref}`);
|
||||
const apiClient = getApiClient();
|
||||
return await apiClient.paginate("GET /repos/{owner}/{repo}/actions/caches", { owner: repositoryNwo.owner, repo: repositoryNwo.repo, key, ref }, (response) => response.data.actions_caches);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user