Skip to content

Commit b9a42c3

Browse files
committed
Enable snyk reports only on push
1 parent f77bfb4 commit b9a42c3

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.tekton/network-observability-operator-bundle-ystream-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ spec:
4040
value: bundle.Dockerfile.downstream
4141
- name: prefetch-input
4242
value: '{"type":"pip", "path":"."}'
43+
- name: snyk-args
44+
value: "--project-name=netobserv-bundle --report --org=824715e7-b597-4123-bdb7-ba8abc3d3b2f"
4345
pipelineRef:
4446
name: build-bundle-pipeline
4547
taskRunTemplate:

.tekton/network-observability-operator-ystream-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
value: Dockerfile-args.downstream
4646
- name: dockerfile
4747
value: ./Dockerfile.downstream
48+
- name: snyk-args
49+
value: "--project-name=netobserv-operator --report --org=824715e7-b597-4123-bdb7-ba8abc3d3b2f"
4850
pipelineRef:
4951
name: build-pipeline
5052
taskRunTemplate:

.tekton/pipeline-bundle-ref.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ spec:
6565
default: 'false'
6666
description: Enable cache proxy configuration
6767
type: string
68+
- name: snyk-args
69+
default: ''
70+
description: Snyk arguments, e.g. for report upload
71+
type: string
6872
results:
6973
- description: ""
7074
name: IMAGE_URL
@@ -278,7 +282,7 @@ spec:
278282
- name: image-url
279283
value: $(tasks.build-container.results.IMAGE_URL)
280284
- name: ARGS
281-
value: "--project-name=netobserv-bundle --report --org=824715e7-b597-4123-bdb7-ba8abc3d3b2f"
285+
value: $(params.snyk-args)
282286
runAfter:
283287
- build-container
284288
taskRef:

.tekton/pipeline-ref.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ spec:
7979
default: docker
8080
type: string
8181
description: The format for the resulting image's mediaType. Valid values are oci or docker.
82+
- name: snyk-args
83+
default: ''
84+
description: Snyk arguments, e.g. for report upload
85+
type: string
8286
results:
8387
- description: ""
8488
name: IMAGE_URL
@@ -383,7 +387,7 @@ spec:
383387
- name: CACHI2_ARTIFACT
384388
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
385389
- name: ARGS
386-
value: "--project-name=netobserv-operator --report --org=824715e7-b597-4123-bdb7-ba8abc3d3b2f"
390+
value: $(params.snyk-args)
387391
runAfter:
388392
- build-image-index
389393
taskRef:

0 commit comments

Comments
 (0)