From 9931f61525f32539a57315a9a76ced5b699d9d37 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 21 Oct 2024 10:04:40 -0700 Subject: [PATCH] ci: Skip docker login for PRs from forks --- .github/workflows/_test.yml | 1 + .github/workflows/_test_langgraph.yml | 1 + .github/workflows/_test_scheduler_kafka.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index 3a4f0d4d2..29eab4cd3 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -35,6 +35,7 @@ jobs: cache-key: test-${{ inputs.working-directory }} - name: Login to Docker Hub uses: docker/login-action@v3 + if: ${{ !github.event.pull_request.head.repo.fork }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_RO_TOKEN }} diff --git a/.github/workflows/_test_langgraph.yml b/.github/workflows/_test_langgraph.yml index 2aad17993..b93e75d92 100644 --- a/.github/workflows/_test_langgraph.yml +++ b/.github/workflows/_test_langgraph.yml @@ -37,6 +37,7 @@ jobs: cache-key: test-langgraph - name: Login to Docker Hub uses: docker/login-action@v3 + if: ${{ !github.event.pull_request.head.repo.fork }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_RO_TOKEN }} diff --git a/.github/workflows/_test_scheduler_kafka.yml b/.github/workflows/_test_scheduler_kafka.yml index da01a9bd8..1f0edf420 100644 --- a/.github/workflows/_test_scheduler_kafka.yml +++ b/.github/workflows/_test_scheduler_kafka.yml @@ -29,6 +29,7 @@ jobs: cache-key: test-scheduler-kafka - name: Login to Docker Hub uses: docker/login-action@v3 + if: ${{ !github.event.pull_request.head.repo.fork }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_RO_TOKEN }}