Skip to content

Commit 1d2732e

Browse files
authored
ci: Don't log in to container registry for forked PRs
Signed-off-by: Christian Kadner <[email protected]>
1 parent 169ea1d commit 1d2732e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ jobs:
5151

5252
- name: "Log in to container registry (server-release)"
5353
uses: docker/login-action@v3
54+
if: github.event_name != 'pull_request'
5455
with:
5556
registry: ${{ env.IMAGE_REGISTRY }}
5657
username: ${{ secrets.WXPE_QUAY_USER }}
5758
password: ${{ secrets.WXPE_QUAY_TOKEN }}
5859

5960
- name: "Log in to container registry (cache image)"
6061
uses: docker/login-action@v3
62+
if: github.event_name != 'pull_request'
6163
with:
6264
registry: ${{ env.CACHE_REGISTRY }}
6365
username: ${{ github.actor }}

0 commit comments

Comments
 (0)