mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	ci: fix workflow permissions
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										5
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@@ -229,8 +229,6 @@ jobs:
 | 
				
			|||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
      # required to write sarif report
 | 
					      # required to write sarif report
 | 
				
			||||||
      security-events: write
 | 
					      security-events: write
 | 
				
			||||||
      # required to check out the repository
 | 
					 | 
				
			||||||
      contents: read
 | 
					 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Checkout
 | 
					        name: Checkout
 | 
				
			||||||
@@ -404,6 +402,9 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  release:
 | 
					  release:
 | 
				
			||||||
    runs-on: ubuntu-24.04
 | 
					    runs-on: ubuntu-24.04
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      # required to create GitHub release
 | 
				
			||||||
 | 
					      contents: write
 | 
				
			||||||
    needs:
 | 
					    needs:
 | 
				
			||||||
      - test-integration
 | 
					      - test-integration
 | 
				
			||||||
      - test-unit
 | 
					      - test-unit
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/codeql.yml
									
									
									
									
										vendored
									
									
								
							@@ -21,12 +21,10 @@ env:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  codeql:
 | 
					  codeql:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-24.04
 | 
				
			||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
      actions: read
 | 
					      actions: read
 | 
				
			||||||
      contents: read
 | 
					 | 
				
			||||||
      security-events: write
 | 
					      security-events: write
 | 
				
			||||||
 | 
					 | 
				
			||||||
    runs-on: ubuntu-24.04
 | 
					 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Checkout
 | 
					        name: Checkout
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										3
									
								
								.github/workflows/docs-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/docs-release.yml
									
									
									
									
										vendored
									
									
								
							@@ -23,6 +23,9 @@ jobs:
 | 
				
			|||||||
  open-pr:
 | 
					  open-pr:
 | 
				
			||||||
    runs-on: ubuntu-24.04
 | 
					    runs-on: ubuntu-24.04
 | 
				
			||||||
    if: ${{ (github.event.release.prerelease != true || github.event.inputs.tag != '') && github.repository == 'docker/buildx' }}
 | 
					    if: ${{ (github.event.release.prerelease != true || github.event.inputs.tag != '') && github.repository == 'docker/buildx' }}
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      contents: write
 | 
				
			||||||
 | 
					      pull-requests: write
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Checkout docs repo
 | 
					        name: Checkout docs repo
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								.github/workflows/labeler.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								.github/workflows/labeler.yml
									
									
									
									
										vendored
									
									
								
							@@ -18,10 +18,9 @@ on:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  labeler:
 | 
					  labeler:
 | 
				
			||||||
    permissions:
 | 
					 | 
				
			||||||
      contents: read
 | 
					 | 
				
			||||||
      pull-requests: write
 | 
					 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      pull-requests: write
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      -
 | 
					      -
 | 
				
			||||||
        name: Run
 | 
					        name: Run
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user