Skip to content

Commit 7913271

Browse files
authored
Configure snyk (#2445)
* Configure snyk * Enable snyk reports only on push
1 parent 8b037f5 commit 7913271

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
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: 6 additions & 0 deletions
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
@@ -277,6 +281,8 @@ spec:
277281
value: $(tasks.build-container.results.IMAGE_DIGEST)
278282
- name: image-url
279283
value: $(tasks.build-container.results.IMAGE_URL)
284+
- name: ARGS
285+
value: $(params.snyk-args)
280286
runAfter:
281287
- build-container
282288
taskRef:

.tekton/pipeline-ref.yaml

Lines changed: 6 additions & 0 deletions
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
@@ -382,6 +386,8 @@ spec:
382386
value: $(tasks.prefetch-dependencies.results.SOURCE_ARTIFACT)
383387
- name: CACHI2_ARTIFACT
384388
value: $(tasks.prefetch-dependencies.results.CACHI2_ARTIFACT)
389+
- name: ARGS
390+
value: $(params.snyk-args)
385391
runAfter:
386392
- build-image-index
387393
taskRef:

0 commit comments

Comments
 (0)