From 32e05f811607be2297ba8942106b09bbfb45f665 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:54:59 +0000 Subject: [PATCH 1/2] Initial plan From 52af33e4e0683f7036a08efe64cdc8034dff3025 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:56:59 +0000 Subject: [PATCH 2/2] Fix actions-storage-cleanup workflow: use github.rest.* for paginate calls Co-authored-by: harpua555 <93162369+harpua555@users.noreply.github.com> --- .github/workflows/actions-storage-cleanup.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/actions-storage-cleanup.yml b/.github/workflows/actions-storage-cleanup.yml index 178b881..432ae8f 100644 --- a/.github/workflows/actions-storage-cleanup.yml +++ b/.github/workflows/actions-storage-cleanup.yml @@ -37,16 +37,14 @@ jobs: core.info(`Keeping newest ${keepRuns} run(s) per workflow.`); const workflows = await github.paginate( - github.request, - 'GET /repos/{owner}/{repo}/actions/workflows', + github.rest.actions.listRepoWorkflows, { owner, repo, per_page: 100 } ); let deletedRuns = 0; for (const workflow of workflows) { const runs = await github.paginate( - github.request, - 'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs', + github.rest.actions.listWorkflowRuns, { owner, repo, workflow_id: workflow.id, per_page: 100 } ); @@ -81,8 +79,7 @@ jobs: } const caches = await github.paginate( - github.request, - 'GET /repos/{owner}/{repo}/actions/caches', + github.rest.actions.getActionsCacheList, { owner, repo, per_page: 100 } );