mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 05:19:10 +08:00 
			
		
		
		
	docs: Add missing permission in cache delete example (#1123)
This commit is contained in:
		@@ -44,6 +44,11 @@ on:
 | 
			
		||||
jobs:
 | 
			
		||||
  cleanup:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    permissions:
 | 
			
		||||
      # `actions:write` permission is required to delete caches
 | 
			
		||||
      #   See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id
 | 
			
		||||
      actions: write
 | 
			
		||||
      contents: read
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Check out code
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user