Skip to content

Commit 2997593

Browse files
committed
fix: 修复 GitHub Actions ID token 问题,暂时禁用 attestation 步骤
1 parent 7ebf9e9 commit 2997593

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/docker-build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
type=raw,value=latest,enable={{is_default_branch}}
5353
5454
- name: Build and push Docker image
55+
id: build
5556
uses: docker/build-push-action@v5
5657
with:
5758
context: .
@@ -64,10 +65,11 @@ jobs:
6465
build-args: |
6566
BUILDKIT_INLINE_CACHE=1
6667
67-
- name: Generate artifact attestation
68-
if: github.event_name != 'pull_request'
69-
uses: actions/attest-build-provenance@v1
70-
with:
71-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
72-
subject-digest: ${{ steps.build.outputs.digest }}
73-
push-to-registry: true
68+
# Temporarily disabled due to ID token issues
69+
# - name: Generate artifact attestation
70+
# if: github.event_name != 'pull_request'
71+
# uses: actions/attest-build-provenance@v1
72+
# with:
73+
# subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
74+
# subject-digest: ${{ steps.build.outputs.digest }}
75+
# push-to-registry: true

0 commit comments

Comments
 (0)