From 5276a086651b4318a4850a92014c3cfec9cbb6c0 Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Mon, 14 Jul 2025 17:03:37 -0600 Subject: [PATCH] Only run docker publish when PR is not a fork (#30808) Co-authored-by: Ian Littman --- .github/workflows/goreleaser-snapshot-fleet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser-snapshot-fleet.yaml b/.github/workflows/goreleaser-snapshot-fleet.yaml index 1b2c8709ac..28684399de 100644 --- a/.github/workflows/goreleaser-snapshot-fleet.yaml +++ b/.github/workflows/goreleaser-snapshot-fleet.yaml @@ -38,7 +38,7 @@ jobs: # Docker will not be available. # # Also not run if author is dependabot (it doesn't have access to Github secrets). - if: ${{ (github.repository == 'fleetdm/fleet') && (github.actor != 'dependabot[bot]') }} + if: ${{ (github.repository == 'fleetdm/fleet') && (github.actor != 'dependabot[bot]') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }} runs-on: ubuntu-22.04 environment: Docker Hub steps: