We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70bb464 commit 78cd1c8Copy full SHA for 78cd1c8
.github/workflows/containers.yaml
@@ -43,12 +43,13 @@ jobs:
43
cache-to: type=gha,mode=max
44
context: .
45
file: packages/ref/Dockerfile
46
- push: true
+ push: ${{ ! github.event.pull_request.head.repo.fork }}
47
sbom: true
48
tags: ${{ steps.metadata.outputs.tags }}
49
labels: ${{ steps.metadata.outputs.labels }}
50
- name: Attest to REF image
51
uses: actions/attest-build-provenance@v2
52
+ if: ${{ ! github.event.pull_request.head.repo.fork }}
53
with:
54
subject-name: ghcr.io/${{ github.repository_owner }}/ref
55
subject-digest: ${{ steps.push.outputs.digest }}
changelog/207.ci.md
@@ -0,0 +1 @@
1
+Disabled trying to push container images to the registry from forks.
0 commit comments