Skip to content

Commit a8afa6c

Browse files
add secret to workflow
1 parent eb84983 commit a8afa6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build-image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max,compression=zstd,oci-mediatypes=true
4848
provenance: false
4949
sbom: false
50+
secrets: |
51+
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
5052
5153
- name: Build and push (arm64)
5254
uses: docker/build-push-action@v6
@@ -58,6 +60,8 @@ jobs:
5860
cache-to: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache,mode=max,compression=zstd,oci-mediatypes=true
5961
provenance: false
6062
sbom: false
63+
secrets: |
64+
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
6165
6266
- name: Generate artifact attestation
6367
uses: actions/attest-build-provenance@v2

0 commit comments

Comments
 (0)