ci: fix permisions (#1512)
* ci: fix permisions * chore: change to trigger build * ci: add write permission to packages * ci: remove conditionals for docker logins * Update controllers/utils_test.go Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
		
							parent
							
								
									0cd13fe51d
								
							
						
					
					
						commit
						a62882d243
					
				|  | @ -37,7 +37,6 @@ runs: | ||||||
|         version: latest |         version: latest | ||||||
| 
 | 
 | ||||||
|     - name: Login to DockerHub |     - name: Login to DockerHub | ||||||
|       if: ${{ github.ref == 'master' && github.event.pull_request.merged == true }} |  | ||||||
|       uses: docker/login-action@v2 |       uses: docker/login-action@v2 | ||||||
|       with: |       with: | ||||||
|         username: ${{ inputs.username }} |         username: ${{ inputs.username }} | ||||||
|  | @ -45,7 +44,6 @@ runs: | ||||||
| 
 | 
 | ||||||
|     - name: Login to GitHub Container Registry |     - name: Login to GitHub Container Registry | ||||||
|       uses: docker/login-action@v2 |       uses: docker/login-action@v2 | ||||||
|       if: ${{ github.ref == 'master' && github.event.pull_request.merged == true }} |  | ||||||
|       with: |       with: | ||||||
|         registry: ghcr.io |         registry: ghcr.io | ||||||
|         username: ${{ inputs.ghcr_username }} |         username: ${{ inputs.ghcr_username }} | ||||||
|  |  | ||||||
|  | @ -19,8 +19,10 @@ on: | ||||||
|       - 'LICENSE' |       - 'LICENSE' | ||||||
|       - 'Makefile' |       - 'Makefile' | ||||||
| 
 | 
 | ||||||
|  | # https://docs.github.com/en/rest/overview/permissions-required-for-github-apps | ||||||
| permissions: | permissions: | ||||||
|   contents: read |   contents: read | ||||||
|  |   packages: write   | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   canary-build: |   canary-build: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue