Only run docker publish when PR is not a fork (#30808)

Co-authored-by: Ian Littman <iansltx@gmail.com>
This commit is contained in:
Luke Heath 2025-07-14 17:03:37 -06:00 committed by GitHub
parent ad28be9623
commit 5276a08665
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: