File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 23
23
runs-on : ubuntu-latest
24
24
# # Requires the repo environment "Push to Docker", which will trigger a secondary approval step before running this workflow.
25
25
environment : " Push to Docker"
26
+ permissions :
27
+ id-token : write
28
+ attestations : write
26
29
steps :
27
30
# # Setup Docker for the builds
28
31
- name : Docker setup
68
71
GIT_COMMIT=${{ env.GITHUB_SHA_SHORT }}
69
72
TARGET_CPU=x86-64-v3
70
73
push : ${{ env.DOCKER_PUSH }}
74
+
75
+ # # Generate docker image attestation(s)
76
+ - name : Generate artifact attestation (${{ github.event.repository.name }})
77
+ id : attest_primary
78
+ uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
79
+ with :
80
+ # subject-name: index.docker.io/${{ env.docker-org }}/${{ github.event.repository.name }}
81
+ subject-name : |
82
+ index.docker.io/${{env.docker-org}}/${{ github.event.repository.name }}
83
+ subject-digest : ${{ steps.docker_build.outputs.digest }}
84
+ push-to-registry : true
85
+
86
+ - name : Generate artifact attestation (stacks-blockchain)
87
+ id : attest_secondary
88
+ uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
89
+ with :
90
+ # subject-name: index.docker.io/${{ env.docker-org }}/${{ github.event.repository.name }}
91
+ subject-name : |
92
+ index.docker.io/${{env.docker-org}}/stacks-blockchain
93
+ subject-digest : ${{ steps.docker_build.outputs.digest }}
94
+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments