Skip to content

Commit 1093cce

Browse files
committed
Skip Docker login on PRs from forks
1 parent 8eb5a9c commit 1093cce

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Login to Docker Hub
33+
# PRs from forks don't have access to the secrets, skip Docker login and hope we don't hit the rate limit
34+
if: ${{ !github.event.pull_request.head.repo.fork }}
3335
uses: docker/login-action@v4
3436
with:
3537
username: ${{ secrets.DOCKERHUB_USERNAME }}

0 commit comments

Comments
 (0)