From c0af47471a75e5a053fe7107cb52d18a06d3b360 Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Thu, 8 May 2025 21:56:13 +0200 Subject: [PATCH] Fix typos and outdated links --- README.md | 4 ++-- __tests__/cache-restore.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b23585d..cf0035d 100644 --- a/README.md +++ b/README.md @@ -245,7 +245,7 @@ documentation. `setup-go` comes pre-installed on the appliance with GHES if Actions is enabled. When dynamically downloading Go distributions, `setup-go` downloads distributions from [`actions/go-versions`](https://github.com/actions/go-versions) on github.com (outside of the appliance). -These calls to `actions/go-versions` are made via unauthenticated requests, which are limited to [60 requests per hour per IP](https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting). +These calls to `actions/go-versions` are made via unauthenticated requests, which are limited to [60 requests per hour per IP](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api#primary-rate-limit-for-unauthenticated-users). If more requests are made within the time frame, then the action leverages the `raw API` to retrieve the version-manifest. This approach does not impose a rate limit and hence facilitates unrestricted consumption. This is particularly beneficial for GHES runners, which often share the same IP, to avoid the quick exhaustion of the unauthenticated rate limit. If that fails as well the action will try to download versions directly from https://storage.googleapis.com/golang. @@ -259,7 +259,7 @@ with: ``` If the runner is not able to access github.com, any Go versions requested during a workflow run must come from the runner's tool cache. -See "[Setting up the tool cache on self-hosted runners without internet access](https://docs.github.com/en/enterprise-server@3.2/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)" +See "[Setting up the tool cache on self-hosted runners without internet access](https://docs.github.com/en/enterprise-server@latest/admin/github-actions/managing-access-to-actions-from-githubcom/setting-up-the-tool-cache-on-self-hosted-runners-without-internet-access)" for more information. ## Recommended permissions diff --git a/__tests__/cache-restore.test.ts b/__tests__/cache-restore.test.ts index 07dc97a..119c81c 100644 --- a/__tests__/cache-restore.test.ts +++ b/__tests__/cache-restore.test.ts @@ -51,7 +51,7 @@ describe('restoreCache', () => { ); }); - it('should inform if cache hit is not occured', async () => { + it('should inform if cache hit is not occurred', async () => { //Arrange hashFilesSpy.mockImplementation((somePath: string) => { return new Promise(resolve => { @@ -74,7 +74,7 @@ describe('restoreCache', () => { expect(infoSpy).toHaveBeenCalledWith(`Cache is not found`); }); - it('should set output if cache hit is occured', async () => { + it('should set output if cache hit is occurred', async () => { //Arrange hashFilesSpy.mockImplementation((somePath: string) => { return new Promise(resolve => {