mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 19:33:35 +00:00 
			
		
		
		
	Merge 0989b3cff107c152e63aaa55afcf28cbf15887f2 into ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
This commit is contained in:
		
						commit
						a7b7d87eb1
					
				
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							| @ -349,6 +349,22 @@ jobs: | |||||||
| 
 | 
 | ||||||
| *NOTE:* The user email is `{user.id}+{user.login}@users.noreply.github.com`. See users API: https://api.github.com/users/github-actions%5Bbot%5D | *NOTE:* The user email is `{user.id}+{user.login}@users.noreply.github.com`. See users API: https://api.github.com/users/github-actions%5Bbot%5D | ||||||
| 
 | 
 | ||||||
|  | ## Post checkout permission check | ||||||
|  | 
 | ||||||
|  | ```yaml | ||||||
|  | on: push | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     runs-on: ubuntu-latest | ||||||
|  |     steps: | ||||||
|  |       - uses: actions/checkout@v4 | ||||||
|  |       - run: >- | ||||||
|  |           git status | ||||||
|  |           || git config --system --add safe.directory "$GITHUB_WORKSPACE" | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | This check prevent/workaround "fatal: detected dubious ownership in repository" error on self hosted runners. | ||||||
|  | 
 | ||||||
| # Recommended permissions | # Recommended permissions | ||||||
| 
 | 
 | ||||||
| When using the `checkout` action in your GitHub Actions workflow, it is recommended to set the following `GITHUB_TOKEN` permissions to ensure proper functionality, unless alternative auth is provided via the `token` or `ssh-key` inputs: | When using the `checkout` action in your GitHub Actions workflow, it is recommended to set the following `GITHUB_TOKEN` permissions to ensure proper functionality, unless alternative auth is provided via the `token` or `ssh-key` inputs: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user