@@ -2,9 +2,7 @@ apiVersion: tekton.dev/v1
2
2
kind : Pipeline
3
3
metadata :
4
4
name : scanner-component-pipeline
5
-
6
5
spec :
7
-
8
6
finally :
9
7
- name : slack-notification
10
8
params :
@@ -13,10 +11,10 @@ spec:
13
11
- name : key-name
14
12
value : ' acs-konflux-notifications'
15
13
when :
16
- # Run when any task has Failed
14
+ # Run when any task has Failed
17
15
- input : $(tasks.status)
18
16
operator : in
19
- values : [ "Failed" ]
17
+ values : ["Failed"]
20
18
taskRef :
21
19
params :
22
20
- name : name
26
24
- name : kind
27
25
value : task
28
26
resolver : bundles
29
-
30
27
- name : show-sbom
31
28
params :
32
29
- name : IMAGE_URL
40
37
- name : kind
41
38
value : task
42
39
resolver : bundles
43
-
44
40
- name : post-metric-end
45
41
params :
46
42
- name : AGGREGATE_TASKS_STATUS
54
50
- name : kind
55
51
value : task
56
52
resolver : bundles
57
-
58
53
params :
59
54
- description : Source Repository URL
60
55
name : git-url
@@ -79,13 +74,11 @@ spec:
79
74
name : output-tag-suffix
80
75
type : string
81
76
- default : .
82
- description : Path to the source code of an application's component from where
83
- to build image.
77
+ description : Path to the source code of an application's component from where to build image.
84
78
name : path-context
85
79
type : string
86
80
- default : Dockerfile
87
- description : Path to the Dockerfile inside the context specified by parameter
88
- path-context
81
+ description : Path to the Dockerfile inside the context specified by parameter path-context
89
82
name : dockerfile
90
83
type : string
91
84
- default : " false"
104
97
description : Build dependencies to be prefetched by Cachi2
105
98
name : prefetch-input
106
99
type : string
107
- - description : Image tag expiration time, time values could be something like
108
- 1h, 2d, 3w for hours, days, and weeks, respectively.
100
+ - description : Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively.
109
101
name : image-expires-after
110
102
type : string
111
103
- default : " true"
@@ -116,15 +108,18 @@ spec:
116
108
description : Build stage to target in container build
117
109
name : build-target-stage
118
110
type : string
119
- - default : [ ]
111
+ - default : []
120
112
description : List of scanner-data file names to fetch to include in the container build.
121
113
name : blobs-to-fetch
122
114
type : array
123
115
- default : " 1d"
124
116
description : This sets the expiration time for intermediate OCI artifacts produced and used during builds after which they can be garbage collected.
125
117
name : oci-artifact-expires-after
126
118
type : string
127
-
119
+ - name : buildah-format
120
+ default : docker
121
+ type : string
122
+ description : The format for the resulting image's mediaType. Valid values are oci or docker.
128
123
results :
129
124
- description : " "
130
125
name : IMAGE_URL
@@ -138,21 +133,17 @@ spec:
138
133
- description : " "
139
134
name : CHAINS-GIT_COMMIT
140
135
value : $(tasks.clone-repository.results.commit)
141
-
142
136
workspaces :
143
137
- name : git-auth
144
-
145
138
tasks :
146
-
147
139
- name : post-metric-start
148
140
taskRef : *post-bigquery-metrics-ref
149
-
150
141
- name : init
151
142
params :
152
143
- name : image-url
153
- # We can't provide a StackRox-style tag because it is not known at this time (requires cloning source, etc.)
154
- # As a workaround, we still provide a unique tag that's based on a revision in order for this task to comply with
155
- # its expected input. We later actually add this tag on a built image with the apply-index-image-tag task.
144
+ # We can't provide a StackRox-style tag because it is not known at this time (requires cloning source, etc.)
145
+ # As a workaround, we still provide a unique tag that's based on a revision in order for this task to comply with
146
+ # its expected input. We later actually add this tag on a built image with the apply-index-image-tag task.
156
147
value : $(params.output-image-repo):konflux-$(params.revision)
157
148
- name : rebuild
158
149
value : $(params.rebuild)
@@ -163,11 +154,10 @@ spec:
163
154
- name : name
164
155
value : init
165
156
- name : bundle
166
- value : quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:ec962d0be18f36ca7d331c99bf243800f569fc0a2ea6f8c8c3d3a574b71c44dc
157
+ value : quay.io/konflux-ci/tekton-catalog/task-init:0.2@sha256:abf231cfc5a68b56f68a8ac9bb26dca3c3e434c88dd9627c72bdec0b8c335c67
167
158
- name : kind
168
159
value : task
169
160
resolver : bundles
170
-
171
161
- name : clone-repository
172
162
params :
173
163
- name : url
@@ -194,11 +184,10 @@ spec:
194
184
when :
195
185
- input : $(tasks.init.results.build)
196
186
operator : in
197
- values : [ "true" ]
187
+ values : ["true"]
198
188
workspaces :
199
189
- name : basic-auth
200
190
workspace : git-auth
201
-
202
191
- name : determine-image-expiration
203
192
params :
204
193
- name : DEFAULT_IMAGE_EXPIRES_AFTER
@@ -214,7 +203,6 @@ spec:
214
203
- name : kind
215
204
value : task
216
205
resolver : bundles
217
-
218
206
- name : determine-image-tag
219
207
params :
220
208
- name : TAG_SUFFIX
@@ -230,11 +218,10 @@ spec:
230
218
- name : kind
231
219
value : task
232
220
resolver : bundles
233
-
234
221
- name : fetch-scanner-data
235
222
params :
236
223
- name : BLOBS_TO_FETCH
237
- value : [ "$(params.blobs-to-fetch[*])" ]
224
+ value : ["$(params.blobs-to-fetch[*])"]
238
225
- name : TARGET_DIR
239
226
value : .konflux/scanner-data
240
227
- name : SOURCE_ARTIFACT
@@ -252,7 +239,6 @@ spec:
252
239
- name : kind
253
240
value : task
254
241
resolver : bundles
255
-
256
242
- name : prefetch-dependencies
257
243
params :
258
244
- name : input
@@ -265,7 +251,7 @@ spec:
265
251
value : $(params.oci-artifact-expires-after)
266
252
- name : ACTIVATION_KEY
267
253
value : subscription-manager-activation-key-prod
268
- # Required for RPM prefetching support
254
+ # Required for RPM prefetching support
269
255
- name : dev-package-managers
270
256
value : " true"
271
257
taskRef :
@@ -280,7 +266,6 @@ spec:
280
266
workspaces :
281
267
- name : git-basic-auth
282
268
workspace : git-auth
283
-
284
269
- name : build-container-amd64
285
270
params :
286
271
- name : IMAGE
@@ -306,20 +291,21 @@ spec:
306
291
value : $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
307
292
- name : CACHI2_ARTIFACT
308
293
value : $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
294
+ - name : BUILDAH_FORMAT
295
+ value : $(params.buildah-format)
309
296
taskRef :
310
297
params :
311
298
- name : name
312
299
value : buildah-oci-ta
313
300
- name : bundle
314
- value : quay.io/konflux-ci/tekton-catalog/task-buildah-oci-ta:0.5@sha256:fdd3f39c8ea97de0d77bcde160704dbd33fdcb9cd235836927bbb170aaefb80f
301
+ value : quay.io/konflux-ci/tekton-catalog/task-buildah-oci-ta:0.5@sha256:6ec006242975a17388bfe813e2afd0ae721dd013247580c0d988e3c4a9c7f867
315
302
- name : kind
316
303
value : task
317
304
resolver : bundles
318
305
when :
319
306
- input : $(tasks.init.results.build)
320
307
operator : in
321
- values : [ "true" ]
322
-
308
+ values : ["true"]
323
309
- name : build-container-s390x
324
310
params :
325
311
- name : IMAGE
@@ -352,15 +338,14 @@ spec:
352
338
- name : name
353
339
value : buildah-remote-oci-ta
354
340
- name : bundle
355
- value : quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:a60e433e02bfda6811719690edbf1e924820d107ad658c8a9690498d4c7e9c7b
341
+ value : quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:650b0bca57c626c1e82f35cdfadf44a7792230b2b992aaa9c369d615aae6590d
356
342
- name : kind
357
343
value : task
358
344
resolver : bundles
359
345
when :
360
346
- input : $(tasks.init.results.build)
361
347
operator : in
362
- values : [ "true" ]
363
-
348
+ values : ["true"]
364
349
- name : build-container-ppc64le
365
350
params :
366
351
- name : IMAGE
@@ -393,15 +378,14 @@ spec:
393
378
- name : name
394
379
value : buildah-remote-oci-ta
395
380
- name : bundle
396
- value : quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:a60e433e02bfda6811719690edbf1e924820d107ad658c8a9690498d4c7e9c7b
381
+ value : quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:650b0bca57c626c1e82f35cdfadf44a7792230b2b992aaa9c369d615aae6590d
397
382
- name : kind
398
383
value : task
399
384
resolver : bundles
400
385
when :
401
386
- input : $(tasks.init.results.build)
402
387
operator : in
403
- values : [ "true" ]
404
-
388
+ values : ["true"]
405
389
- name : build-container-arm64
406
390
params :
407
391
- name : IMAGE
@@ -434,15 +418,14 @@ spec:
434
418
- name : name
435
419
value : buildah-remote-oci-ta
436
420
- name : bundle
437
- value : quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:a60e433e02bfda6811719690edbf1e924820d107ad658c8a9690498d4c7e9c7b
421
+ value : quay.io/konflux-ci/tekton-catalog/task-buildah-remote-oci-ta:0.5@sha256:650b0bca57c626c1e82f35cdfadf44a7792230b2b992aaa9c369d615aae6590d
438
422
- name : kind
439
423
value : task
440
424
resolver : bundles
441
425
when :
442
426
- input : $(tasks.init.results.build)
443
427
operator : in
444
- values : [ "true" ]
445
-
428
+ values : ["true"]
446
429
- name : build-image-index
447
430
params :
448
431
- name : IMAGE
@@ -457,6 +440,8 @@ spec:
457
440
- $(tasks.build-container-arm64.results.IMAGE_REF)
458
441
- name : IMAGE_EXPIRES_AFTER
459
442
value : $(tasks.determine-image-expiration.results.IMAGE_EXPIRES_AFTER)
443
+ - name : BUILDAH_FORMAT
444
+ value : $(params.buildah-format)
460
445
taskRef :
461
446
params :
462
447
- name : name
@@ -469,8 +454,7 @@ spec:
469
454
when :
470
455
- input : $(tasks.init.results.build)
471
456
operator : in
472
- values : [ "true" ]
473
-
457
+ values : ["true"]
474
458
- name : apply-index-image-tag
475
459
params :
476
460
- name : IMAGE_URL
@@ -492,8 +476,7 @@ spec:
492
476
when :
493
477
- input : $(tasks.init.results.build)
494
478
operator : in
495
- values : [ "true" ]
496
-
479
+ values : ["true"]
497
480
- name : build-source-image
498
481
params :
499
482
- name : BINARY_IMAGE
@@ -516,11 +499,10 @@ spec:
516
499
when :
517
500
- input : $(tasks.init.results.build)
518
501
operator : in
519
- values : [ "true" ]
502
+ values : ["true"]
520
503
- input : $(params.build-source-image)
521
504
operator : in
522
- values : [ "true" ]
523
-
505
+ values : ["true"]
524
506
- name : deprecated-base-image-check
525
507
params :
526
508
- name : IMAGE_URL
@@ -539,8 +521,7 @@ spec:
539
521
when :
540
522
- input : $(params.skip-checks)
541
523
operator : in
542
- values : [ "false" ]
543
-
524
+ values : ["false"]
544
525
- name : clair-scan
545
526
params :
546
527
- name : image-digest
@@ -559,8 +540,7 @@ spec:
559
540
when :
560
541
- input : $(params.skip-checks)
561
542
operator : in
562
- values : [ "false" ]
563
-
543
+ values : ["false"]
564
544
- name : ecosystem-cert-preflight-checks
565
545
params :
566
546
- name : image-url
@@ -577,8 +557,7 @@ spec:
577
557
when :
578
558
- input : $(params.skip-checks)
579
559
operator : in
580
- values : [ "false" ]
581
-
560
+ values : ["false"]
582
561
- name : sast-shell-check
583
562
params :
584
563
- name : image-digest
@@ -601,8 +580,7 @@ spec:
601
580
when :
602
581
- input : $(params.skip-checks)
603
582
operator : in
604
- values : [ "false" ]
605
-
583
+ values : ["false"]
606
584
- name : sast-unicode-check
607
585
params :
608
586
- name : image-digest
@@ -625,8 +603,7 @@ spec:
625
603
when :
626
604
- input : $(params.skip-checks)
627
605
operator : in
628
- values : [ "false" ]
629
-
606
+ values : ["false"]
630
607
- name : sast-snyk-check
631
608
params :
632
609
- name : SOURCE_ARTIFACT
@@ -649,8 +626,7 @@ spec:
649
626
when :
650
627
- input : $(params.skip-checks)
651
628
operator : in
652
- values : [ "false" ]
653
-
629
+ values : ["false"]
654
630
- name : clamav-scan
655
631
params :
656
632
- name : image-digest
@@ -669,8 +645,7 @@ spec:
669
645
when :
670
646
- input : $(params.skip-checks)
671
647
operator : in
672
- values : [ "false" ]
673
-
648
+ values : ["false"]
674
649
- name : rpms-signature-scan
675
650
params :
676
651
- name : image-digest
@@ -689,8 +664,7 @@ spec:
689
664
when :
690
665
- input : $(params.skip-checks)
691
666
operator : in
692
- values : [ "false" ]
693
-
667
+ values : ["false"]
694
668
- name : push-dockerfile
695
669
params :
696
670
- name : IMAGE
0 commit comments