mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 12:13:37 +00:00 
			
		
		
		
	Update Github Token name in readme.md
Updated documentation to show the correct name of the default GITHUB_TOKEN. https://docs.github.com/en/actions/security-guides/automatic-token-authentication
This commit is contained in:
		
							parent
							
								
									bf085276ce
								
							
						
					
					
						commit
						afd333405e
					
				@ -39,7 +39,7 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
 | 
				
			|||||||
    #
 | 
					    #
 | 
				
			||||||
    # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
 | 
					    # [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
 | 
				
			||||||
    #
 | 
					    #
 | 
				
			||||||
    # Default: ${{ github.token }}
 | 
					    # Default: ${{ github.GITHUB_TOKEN }}
 | 
				
			||||||
    token: ''
 | 
					    token: ''
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # SSH key used to fetch the repository. The SSH key is configured with the local
 | 
					    # SSH key used to fetch the repository. The SSH key is configured with the local
 | 
				
			||||||
@ -185,7 +185,7 @@ When Git 2.18 or higher is not in your PATH, falls back to the REST API to downl
 | 
				
			|||||||
    path: my-tools
 | 
					    path: my-tools
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> - `${{ github.token }}` is scoped to the current repository, so if you want to checkout a different repository that is private you will need to provide your own [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
 | 
					> - `${{ github.GITHUB_TOKEN }}` is scoped to the current repository, so if you want to checkout a different repository that is private you will need to provide your own [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Checkout pull request HEAD commit instead of merge commit
 | 
					## Checkout pull request HEAD commit instead of merge commit
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user