mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Use automatic pagination mapping function
This commit is contained in:
Generated
+6
-1
@@ -169,7 +169,12 @@ 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);
|
||||
return await apiClient.paginate("GET /repos/{owner}/{repo}/actions/caches", {
|
||||
owner: repositoryNwo.owner,
|
||||
repo: repositoryNwo.repo,
|
||||
key,
|
||||
ref,
|
||||
});
|
||||
}
|
||||
exports.listActionsCaches = listActionsCaches;
|
||||
function wrapApiConfigurationError(e) {
|
||||
|
||||
Reference in New Issue
Block a user