Skip to content

Commit b538b3b

Browse files
authored
Merge pull request #35 from docker/fix-clone-auth
use git auth token when available
2 parents 8116c22 + 2217f14 commit b538b3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/bake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ jobs:
482482
pull: ${{ inputs.bake-pull }}
483483
sbom: ${{ inputs.bake-sbom }}
484484
set: ${{ steps.prepare.outputs.overrides }}
485-
github-token: ${{ secrets.github-token || github.token }}
486485
env:
487486
BUILDKIT_MULTI_PLATFORM: 1
487+
BUILDX_BAKE_GIT_AUTH_TOKEN: ${{ secrets.github-token || github.token }}
488488
-
489489
name: Get image digest
490490
id: get-image-digest

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,13 @@ jobs:
385385
provenance: mode=max,version=v1
386386
pull: ${{ inputs.build-pull }}
387387
sbom: ${{ inputs.build-sbom }}
388+
secret-envs: GIT_AUTH_TOKEN=GIT_AUTH_TOKEN
388389
shm-size: ${{ inputs.build-shm-size }}
389390
target: ${{ inputs.build-target }}
390391
ulimit: ${{ inputs.build-ulimit }}
391-
github-token: ${{ secrets.github-token || github.token }}
392392
env:
393393
BUILDKIT_MULTI_PLATFORM: 1
394+
GIT_AUTH_TOKEN: ${{ secrets.github-token || github.token }}
394395
-
395396
name: Install Cosign
396397
if: ${{ inputs.push }}

0 commit comments

Comments
 (0)