Skip to content

Commit bfb9be5

Browse files
committed
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.
1 parent 77a4f9e commit bfb9be5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release-docker.yml renamed to .github/workflows/oci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ env:
3232
jobs:
3333

3434
docker:
35-
36-
# To save resources, skip running on commits authored by Dependabot.
37-
if: ${{ !contains(github.event.head_commit.author.name, 'dependabot') }}
38-
3935
runs-on: ubuntu-latest
36+
if: ${{ ! (startsWith(github.actor, 'dependabot') || github.event.pull_request.head.repo.fork ) }}
37+
4038
steps:
4139
-
4240
name: Checkout

0 commit comments

Comments
 (0)