@@ -13,33 +13,62 @@ build_steps:
13
13
substeps : [show-sbom-rhdh, summary]
14
14
concurrent : true
15
15
16
- build_secrets :
17
- - name : ROX_API_TOKEN
16
+ build_variables :
18
17
- name : ROX_CENTRAL_ENDPOINT
19
- - name : GITOPS_AUTH_PASSWORD
18
+
20
19
- name : GITOPS_AUTH_USERNAME
20
+ if : ' !isGitLab'
21
21
commented_out : true
22
- comment : Uncomment this when using Gitlab
22
+ - name : GITOPS_AUTH_USERNAME
23
+ if : ' isGitLab'
23
24
24
- - name : IMAGE_REGISTRY_USER
25
+ - name : IMAGE_REGISTRY_USER
25
26
if : ' isGitHub'
26
27
comment : " Set this to the user for your specific registry"
27
- - name : IMAGE_REGISTRY_PASSWORD
28
- if : ' isGitHub'
29
- comment : " Set this password for your specific registry"
28
+ - name : IMAGE_REGISTRY_USER
29
+ if : ' !isGitHub'
30
+ commented_out : true
31
+ comment : " Set this to the user for your specific registry"
32
+
30
33
# Expose Rekor and TUF in GitHub Actions so they can be set by user in secrets
31
34
- name : REKOR_HOST
32
35
if : ' isGitHub'
33
36
comment : " Set this only when using an external Rekor instance"
34
- commented_out : true
35
37
- name : TUF_MIRROR
36
38
if : ' isGitHub'
37
39
comment : " Set this only when using an external TUF instance"
40
+ # Rekor and TUF again, but there is a difference between GH Actions and Jenkins
41
+ - name : REKOR_HOST
42
+ if : ' isJenkins'
43
+ comment : " Set when using Jenkins on non-local cluster and using an external Rekor instance"
38
44
commented_out : true
39
- - name : IMAGE_REGISTRY_USER
40
- if : ' !isGitHub'
45
+ - name : TUF_MIRROR
46
+ if : ' isJenkins'
47
+ comment : " Set when using Jenkins on non-local cluster and using an external TUF instance"
41
48
commented_out : true
42
- comment : " Set this to the user for your specific registry"
49
+
50
+ - name : QUAY_IO_CREDS_USR
51
+ if : ' !isJenkins'
52
+ commented_out : true
53
+
54
+ - name : ARTIFACTORY_IO_CREDS_USR
55
+ if : ' !isJenkins'
56
+ commented_out : true
57
+
58
+ - name : NEXUS_IO_CREDS_USR
59
+ if : ' !isJenkins'
60
+ commented_out : true
61
+
62
+ - name : COSIGN_PUBLIC_KEY
63
+
64
+ build_secrets :
65
+ - name : ROX_API_TOKEN
66
+
67
+ - name : GITOPS_AUTH_PASSWORD
68
+
69
+ - name : IMAGE_REGISTRY_PASSWORD
70
+ if : ' isGitHub'
71
+ comment : " Set this password for your specific registry"
43
72
- name : IMAGE_REGISTRY_PASSWORD
44
73
if : ' !isGitHub'
45
74
commented_out : true
@@ -48,82 +77,91 @@ build_secrets:
48
77
- name : QUAY_IO_CREDS
49
78
if : isJenkins
50
79
comment : " Default registry is set to quay.io"
51
- - name : QUAY_IO_CREDS_USR
52
- if : ' !isJenkins'
53
- commented_out : true
54
80
- name : QUAY_IO_CREDS_PSW
55
81
if : ' !isJenkins'
56
- commented_out : true
82
+ commented_out : true
83
+
57
84
- name : ARTIFACTORY_IO_CREDS
58
85
if : isJenkins
59
86
commented_out : true
60
- - name : ARTIFACTORY_IO_CREDS_USR
61
- if : ' !isJenkins'
62
- commented_out : true
63
87
- name : ARTIFACTORY_IO_CREDS_PSW
64
88
if : ' !isJenkins'
65
- commented_out : true
89
+ commented_out : true
90
+
66
91
- name : NEXUS_IO_CREDS
67
92
if : isJenkins
68
93
commented_out : true
69
- - name : NEXUS_IO_CREDS_USR
70
- if : ' !isJenkins'
71
- commented_out : true
72
94
- name : NEXUS_IO_CREDS_PSW
73
95
if : ' !isJenkins'
74
- commented_out : true
96
+ commented_out : true
97
+
75
98
- name : COSIGN_SECRET_PASSWORD
76
99
- name : COSIGN_SECRET_KEY
77
- - name : COSIGN_PUBLIC_KEY
78
- # Rekor and TUF again, but there is a difference between GH Actions and Jenkins
79
- - name : REKOR_HOST
80
- if : ' isJenkins'
81
- comment : " Set when using Jenkins on non-local cluster and using an external Rekor instance"
82
- commented_out : true
83
- - name : TUF_MIRROR
84
- if : ' isJenkins'
85
- comment : " Set when using Jenkins on non-local cluster and using an external TUF instance"
86
- commented_out : true
87
100
88
101
gitops_steps :
89
102
- name : Verify EC
90
103
substeps : [gather-deploy-images, verify-enterprise-contract]
91
104
- name : Upload SBOM
92
105
substeps : [gather-images-to-upload-sbom, download-sbom-from-url-in-attestation, upload-sbom-to-trustification]
93
106
94
- gitops_secrets :
107
+ gitops_variables :
95
108
- name : COSIGN_PUBLIC_KEY
96
109
comment : Used to verify the image signature and attestation
110
+
97
111
- name : TRUSTIFICATION_BOMBASTIC_API_URL
98
112
comment : URL of the BOMbastic api host (e.g. https://sbom.trustification.dev)
99
113
- name : TRUSTIFICATION_OIDC_ISSUER_URL
100
114
comment : URL of the OIDC token issuer (e.g. https://sso.trustification.dev/realms/chicken)
101
115
- name : TRUSTIFICATION_OIDC_CLIENT_ID
102
- - name : TRUSTIFICATION_OIDC_CLIENT_SECRET
103
116
- name : TRUSTIFICATION_SUPPORTED_CYCLONEDX_VERSION
117
+
104
118
# If the OCI registry is not public then ec needs some credentials so it can see the attestations.
105
119
# Todo: Use different credentials here so we provide read access only instead of read/write access.
106
- # github always uses these
107
- - name : IMAGE_REGISTRY_USER
120
+ # github always uses these
121
+ - name : IMAGE_REGISTRY_USER
108
122
if : ' isGitHub'
109
123
comment : " Set this to the user for your specific registry"
110
- - name : IMAGE_REGISTRY_PASSWORD
111
- if : ' isGitHub'
112
- comment : " Set this password for your specific registry"
124
+
113
125
# Expose Rekor and TUF in GitHub Actions so they can be set by user in secrets
114
126
- name : REKOR_HOST
115
127
if : ' isGitHub'
116
128
comment : " Set this only when using an external Rekor instance"
117
- commented_out : true
118
129
- name : TUF_MIRROR
119
130
if : ' isGitHub'
120
131
comment : " Set this only when using an external TUF instance"
132
+ # Rekor and TUF again, but there is a difference between GH Actions and Jenkins
133
+ - name : REKOR_HOST
134
+ if : ' isJenkins'
135
+ comment : " Set when using Jenkins on non-local cluster and using an external Rekor instance"
136
+ commented_out : true
137
+ - name : TUF_MIRROR
138
+ if : ' isJenkins'
139
+ comment : " Set when using Jenkins on non-local cluster and using an external TUF instance"
121
140
commented_out : true
141
+
122
142
# other CIs in transition so comment out and leave Quay.io
123
143
- name : IMAGE_REGISTRY_USER
124
144
if : ' !isGitHub'
125
145
commented_out : true
126
146
comment : " Set this to the user for your specific registry"
147
+
148
+ - name : QUAY_IO_CREDS_USR
149
+ if : ' !isJenkins'
150
+ commented_out : true
151
+
152
+ - name : ARTIFACTORY_IO_CREDS_USR
153
+ if : ' !isJenkins'
154
+ commented_out : true
155
+
156
+ - name : NEXUS_IO_CREDS_USR
157
+ if : ' !isJenkins'
158
+ commented_out : true
159
+
160
+ gitops_secrets :
161
+ - name : TRUSTIFICATION_OIDC_CLIENT_SECRET
162
+ - name : IMAGE_REGISTRY_PASSWORD
163
+ if : ' isGitHub'
164
+ comment : " Set this password for your specific registry"
127
165
- name : IMAGE_REGISTRY_PASSWORD
128
166
if : ' !isGitHub'
129
167
commented_out : true
@@ -133,36 +171,18 @@ gitops_secrets:
133
171
# to be documented
134
172
- name : QUAY_IO_CREDS
135
173
if : isJenkins
136
- - name : QUAY_IO_CREDS_USR
137
- if : ' !isJenkins'
138
- commented_out : true
139
174
- name : QUAY_IO_CREDS_PSW
140
175
if : ' !isJenkins'
141
176
commented_out : true
142
177
- name : ARTIFACTORY_IO_CREDS
143
178
if : isJenkins
144
179
commented_out : true
145
- - name : ARTIFACTORY_IO_CREDS_USR
146
- if : ' !isJenkins'
147
- commented_out : true
148
180
- name : ARTIFACTORY_IO_CREDS_PSW
149
181
if : ' !isJenkins'
150
182
commented_out : true
151
183
- name : NEXUS_IO_CREDS
152
184
if : isJenkins
153
185
commented_out : true
154
- - name : NEXUS_IO_CREDS_USR
155
- if : ' !isJenkins'
156
- commented_out : true
157
186
- name : NEXUS_IO_CREDS_PSW
158
187
if : ' !isJenkins'
159
188
commented_out : true
160
- # Rekor and TUF again, but there is a difference between GH Actions and Jenkins
161
- - name : REKOR_HOST
162
- if : ' isJenkins'
163
- comment : " Set when using Jenkins on non-local cluster and using an external Rekor instance"
164
- commented_out : true
165
- - name : TUF_MIRROR
166
- if : ' isJenkins'
167
- comment : " Set when using Jenkins on non-local cluster and using an external TUF instance"
168
- commented_out : true
0 commit comments