mirror of https://github.com/actions/setup-go.git
				
				
				
			Merge c0af47471a into faf52423ec
				
					
				
			This commit is contained in:
		
						commit
						856925c292
					
				|  | @ -247,7 +247,7 @@ documentation. | ||||||
| `setup-go` comes pre-installed on the appliance with GHES if Actions is enabled. | `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). | 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 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://go.dev/dl. | If that fails as well the action will try to download versions directly from https://go.dev/dl. | ||||||
| 
 | 
 | ||||||
|  | @ -261,7 +261,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. | 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. | for more information. | ||||||
| 
 | 
 | ||||||
| ## Recommended permissions | ## Recommended permissions | ||||||
|  |  | ||||||
|  | @ -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
 |     //Arrange
 | ||||||
|     hashFilesSpy.mockImplementation((somePath: string) => { |     hashFilesSpy.mockImplementation((somePath: string) => { | ||||||
|       return new Promise<string>(resolve => { |       return new Promise<string>(resolve => { | ||||||
|  | @ -74,7 +74,7 @@ describe('restoreCache', () => { | ||||||
|     expect(infoSpy).toHaveBeenCalledWith(`Cache is not found`); |     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
 |     //Arrange
 | ||||||
|     hashFilesSpy.mockImplementation((somePath: string) => { |     hashFilesSpy.mockImplementation((somePath: string) => { | ||||||
|       return new Promise<string>(resolve => { |       return new Promise<string>(resolve => { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Andreas Deininger
						Andreas Deininger