Skip to content

Commit

Permalink
plz generate
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Apr 9, 2024
1 parent b2b3cdd commit b0c80de
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions components/producers/blackduck/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,20 @@ patches:
workspaces:
- name: source-code-ws
tasks:
- name: producer-golang-gosec
- name: producer-blackduck
taskRef:
name: producer-golang-gosec
name: producer-blackduck
workspaces:
- name: source-code-ws
workspace: source-code-ws
params:
- name: producer-golang-gosec-flags
value:
- $(params.producer-golang-gosec-flags)
params:
- name: producer-golang-gosec-flags
type: array
default:
- -r
- -quiet
- -sort
- -nosec
target:
kind: Pipeline
# Add anchors to Task.
- patch: |
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: producer-golang-gosec
name: producer-blackduck
labels:
v1.dracon.ocurity.com/component: producer
spec:
Expand All @@ -59,7 +47,7 @@ patches:
script: echo "$(context.task.name)" > "$(results.anchor.path)"
target:
kind: Task
name: producer-golang-gosec
name: producer-blackduck
# If we have a `source` task in the pipeline (added by a `source` component),
# depend on the completion of that source by referencing its anchor.
- patch: |
Expand All @@ -69,7 +57,7 @@ patches:
name: unused
spec:
tasks:
- name: producer-golang-gosec
- name: producer-blackduck
params:
- name: anchors
value:
Expand All @@ -91,7 +79,7 @@ patches:
params:
- name: anchors
value:
- $(tasks.producer-golang-gosec.results.anchor)
- $(tasks.producer-blackduck.results.anchor)
target:
kind: Pipeline
annotationSelector: v1.dracon.ocurity.com/has-producer-aggregator=true
Expand All @@ -100,7 +88,7 @@ patches:
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: producer-golang-gosec
name: producer-blackduck
labels:
v1.dracon.ocurity.com/component: producer
spec:
Expand All @@ -110,31 +98,24 @@ patches:
- name: dracon_scan_start_time
type: string
steps:
- name: run-gosec
image: docker.io/securego/gosec:2.15.0
env:
- name: DRACON_SCAN_TIME
value: $(params.dracon_scan_start_time)
- name: DRACON_SCAN_ID
value: $(params.dracon_scan_id)
- name: produce-issues
image: ghcr.io/ocurity/dracon/components/producers/golang-gosec/image:latest
image: ghcr.io/ocurity/dracon/components/producers/blackduck/image:latest
env:
- name: DRACON_SCAN_TIME
value: $(params.dracon_scan_start_time)
- name: DRACON_SCAN_ID
value: $(params.dracon_scan_id)
target:
kind: Task
name: producer-golang-gosec
name: producer-blackduck
- patch: |
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: unused
spec:
tasks:
- name: producer-golang-gosec
- name: producer-blackduck
params:
- name: dracon_scan_id
value: $(tasks.base.results.dracon-scan-id)
Expand Down

0 comments on commit b0c80de

Please sign in to comment.