From 765f01b19405b5156702b138c0352fc2861ad577 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 26 Jun 2023 19:00:30 +0200 Subject: [PATCH] CI: Do not build and publish OCI images on GHA PRs from non-members The OCI image build machinery can't upload to GHCR when running on behalf of non-members. --- .github/workflows/oci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/oci.yml b/.github/workflows/oci.yml index 48b61bf..9f18a8e 100644 --- a/.github/workflows/oci.yml +++ b/.github/workflows/oci.yml @@ -63,6 +63,7 @@ jobs: oci: needs: build_and_test runs-on: ubuntu-latest + if: ${{ ! (startsWith(github.actor, 'dependabot') || github.event.pull_request.head.repo.fork ) }} steps: - name: Acquire sources