File tree Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Expand file tree Collapse file tree 4 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 94
94
needs :
95
95
- rustfmt
96
96
- check-release
97
+ secrets : inherit
97
98
uses : ./.github/workflows/github-release.yml
98
99
with :
99
100
node_tag : ${{ needs.check-release.outputs.node_tag }}
Original file line number Diff line number Diff line change 24
24
- name : Build the binaries
25
25
id : build
26
26
run : |
27
- cargo build
27
+ cargo build --bin stacks-inspect
28
28
- name : Dump constants JSON
29
29
id : consts-dump
30
30
run : cargo run --bin stacks-inspect -- dump-consts | tee out.json
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ concurrency:
38
38
run-name : ${{ inputs.node_tag || inputs.signer_tag }}
39
39
40
40
jobs :
41
- # # This job's sole purpose is trigger a secondary approval outside of the matrix jobs below.
41
+ # # This job's sole purpose is trigger a secondary approval outside of the matrix jobs below.
42
42
# # - If this job isn't approved to run, then the subsequent jobs will also not run - for this reason, we always exit 0
43
- # # - `andon-cord` requires the repo environment "Build Release", which will trigger a secondary approval step before running this workflow.
43
+ # # - `andon-cord` requires the repo environment "Build Release", which will trigger a secondary approval step before running this workflow.
44
44
andon-cord :
45
45
if : |
46
46
inputs.node_tag != '' ||
65
65
runs-on : ubuntu-latest
66
66
needs :
67
67
- andon-cord
68
+ permissions :
69
+ id-token : write
70
+ attestations : write
68
71
strategy :
69
72
# # Run a maximum of 10 builds concurrently, using the matrix defined in inputs.arch
70
73
max-parallel : 10
@@ -135,6 +138,10 @@ jobs:
135
138
inputs.signer_tag != ''
136
139
name : Docker Image (Binary)
137
140
runs-on : ubuntu-latest
141
+ environment : " Push to Docker"
142
+ permissions :
143
+ id-token : write
144
+ attestations : write
138
145
needs :
139
146
- andon-cord
140
147
- build-binaries
@@ -164,7 +171,6 @@ jobs:
164
171
# # Create the downstream PR for the release branch to master,develop
165
172
create-pr :
166
173
if : |
167
- !contains(github.ref, '-rc') &&
168
174
(
169
175
inputs.node_tag != '' ||
170
176
inputs.signer_tag != ''
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 : |
81
+ index.docker.io/${{env.docker-org}}/${{ github.event.repository.name }}
82
+ subject-digest : ${{ steps.docker_build.outputs.digest }}
83
+ push-to-registry : true
84
+
85
+ - name : Generate artifact attestation (stacks-blockchain)
86
+ id : attest_secondary
87
+ uses : actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2.2.3
88
+ with :
89
+ subject-name : |
90
+ index.docker.io/${{env.docker-org}}/stacks-blockchain
91
+ subject-digest : ${{ steps.docker_build.outputs.digest }}
92
+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments