Skip to content

Commit b573670

Browse files
kevpardmcgowan
authored andcommitted
CI: Pass GITHUB_TOKEN to containerd/project-checks
Previously the project-checks action was failing sometimes due to hitting GitHub API rate limits. Since no token was supplied, the rate limits were only 60 requests/hour keyed off the IP address of the runner. Now, passing GITHUB_TOKEN secret through to project-checks, we have a limit of 1000 requests/hour for the whole repo. This should alleviate the rate limits that were being seen. I believe it is safe to pass this secret as project-checks is also owned by the containerd organization. The secret is also scoped to the actions run, and is invalidated upon completion. project-checks version is also updated to the version that supports repo-access-token input. Signed-off-by: Kevin Parsons <[email protected]> (cherry picked from commit 79d09c6) Signed-off-by: Derek McGowan <[email protected]>
1 parent f28bb76 commit b573670

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ jobs:
6363
path: src/github.com/containerd/containerd
6464
fetch-depth: 100
6565

66-
- uses: containerd/project-checks@v1
66+
- uses: containerd/project-checks@v1.1.0
6767
with:
6868
working-directory: src/github.com/containerd/containerd
69+
repo-access-token: ${{ secrets.GITHUB_TOKEN }}
6970

7071
- name: verify go modules and vendor directory
7172
run: |

0 commit comments

Comments
 (0)