From 8bd6e2d54861e9379b281caae36ac6f6c7c553f5 Mon Sep 17 00:00:00 2001 From: sg Date: Wed, 18 Sep 2024 21:34:59 +0100 Subject: [PATCH] example snyk workflow --- .../pipelines/snyk-project/kustomization.yaml | 12 +++++++++ .../pipelines/snyk-project/pipelinerun.yaml | 26 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 examples/pipelines/snyk-project/kustomization.yaml create mode 100644 examples/pipelines/snyk-project/pipelinerun.yaml diff --git a/examples/pipelines/snyk-project/kustomization.yaml b/examples/pipelines/snyk-project/kustomization.yaml new file mode 100644 index 000000000..8584592a3 --- /dev/null +++ b/examples/pipelines/snyk-project/kustomization.yaml @@ -0,0 +1,12 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +nameSuffix: -snyk-semgrep-project +components: + - pkg:helm/dracon-oss-components/base + - pkg:helm/dracon-oss-components/git-clone + - pkg:helm/dracon-oss-components/producers/snyk + - pkg:helm/dracon-oss-components/producer-aggregator + - pkg:helm/dracon-oss-components/enricher-deduplication + - pkg:helm/dracon-oss-components/enricher-aggregator + - pkg:helm/dracon-oss-components/consumer-stdout-json diff --git a/examples/pipelines/snyk-project/pipelinerun.yaml b/examples/pipelines/snyk-project/pipelinerun.yaml new file mode 100644 index 000000000..8fc5db638 --- /dev/null +++ b/examples/pipelines/snyk-project/pipelinerun.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: tekton.dev/v1beta1 +kind: PipelineRun +metadata: + generateName: dracon-snyk-semgrep-project- +spec: + pipelineRef: + name: dracon-snyk-semgrep-project + params: + - name: git-clone-url + value: https://github.com/sqreen/go-dvwa.git + - name: git-clone-subdirectory + value: source-code + - name: producer-snyk-docker-api-key + value: "" + - name: producer-snyk-docker-image + value: ubuntu + workspaces: + - name: output + volumeClaimTemplate: + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi