Skip to content

Commit

Permalink
feat: add cloudpi producer
Browse files Browse the repository at this point in the history
  • Loading branch information
albrodfer1 committed Sep 27, 2024
1 parent aa2b2b2 commit bcedad5
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions components/producers/cloudpi/task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: producer-cloudpi
labels:
v1.dracon.ocurity.com/component: producer
v1.dracon.ocurity.com/test-type: sca
spec:
params:
- name:
type: array
default: []
description:
volumes:
- name: scratch
emptyDir: {}
workspaces:
- name: output
description: The workspace containing the source-code to scan.
steps:
- name: run-cartography
image: docker.io/cartography/<image>
command: [cartography]
args: []
volumeMounts:
- mountPath: /scratch
name: scratch

- name: run-trivy-aws
image: docker.io/trivy/<image>
command: [trivy]
args: []
volumeMounts:
- mountPath: /scratch
name: scratch

- name: produce-issues
imagePullPolicy: IfNotPresent
image: '{{ default "ghcr.io/ocurity/dracon" .Values.image.registry }}/components/producers/docker-cloudpi:{{ .Chart.AppVersion }}'
command: ["/app/components/producers/docker-cloudpi/docker-cloudpi-parser"]
args:
- "-format=$(params.producer-docker-cloudpi-format)"
- "-in=/scratch/out.json"
- "-out=$(workspaces.output.path)/.dracon/producers/docker-cloudpi.pb"
volumeMounts:
- mountPath: /scratch
name: scratch

0 comments on commit bcedad5

Please sign in to comment.