Skip to content

Commit

Permalink
comment out clamav scan for now
Browse files Browse the repository at this point in the history
there is a problem with the scan where it takes over two hours to
complete on an openshift cluster, but runs in ~1m on my local box.
  • Loading branch information
kylape committed Jan 25, 2024
1 parent 39cf8ca commit a59ab95
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 48 deletions.
52 changes: 26 additions & 26 deletions .tekton/scanner-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,32 +371,32 @@ spec:
workspaces:
- name: workspace
workspace: workspace
- name: clamav-scan
computeResources:
requests:
cpu: 1
params:
- name: image-digest
value: $(tasks.build-container.results.IMAGE_DIGEST)
- name: image-url
value: $(tasks.build-container.results.IMAGE_URL)
runAfter:
- build-container
timeout: 3h
taskRef:
params:
- name: name
value: clamav-scan
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:353fa2cda9855217cfcec3303973b666a10f384795630cf0eb13b874c24b0f7a
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
# - name: clamav-scan
# computeResources:
# requests:
# cpu: 1
# params:
# - name: image-digest
# value: $(tasks.build-container.results.IMAGE_DIGEST)
# - name: image-url
# value: $(tasks.build-container.results.IMAGE_URL)
# runAfter:
# - build-container
# timeout: 3h
# taskRef:
# params:
# - name: name
# value: clamav-scan
# - name: bundle
# value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:353fa2cda9855217cfcec3303973b666a10f384795630cf0eb13b874c24b0f7a
# - name: kind
# value: task
# resolver: bundles
# when:
# - input: $(params.skip-checks)
# operator: in
# values:
# - "false"
- name: sbom-json-check
params:
- name: IMAGE_URL
Expand Down
44 changes: 22 additions & 22 deletions .tekton/scanner-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -365,28 +365,28 @@ spec:
workspaces:
- name: workspace
workspace: workspace
- name: clamav-scan
params:
- name: image-digest
value: $(tasks.build-container.results.IMAGE_DIGEST)
- name: image-url
value: $(tasks.build-container.results.IMAGE_URL)
runAfter:
- build-container
taskRef:
params:
- name: name
value: clamav-scan
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:353fa2cda9855217cfcec3303973b666a10f384795630cf0eb13b874c24b0f7a
- name: kind
value: task
resolver: bundles
when:
- input: $(params.skip-checks)
operator: in
values:
- "false"
# - name: clamav-scan
# params:
# - name: image-digest
# value: $(tasks.build-container.results.IMAGE_DIGEST)
# - name: image-url
# value: $(tasks.build-container.results.IMAGE_URL)
# runAfter:
# - build-container
# taskRef:
# params:
# - name: name
# value: clamav-scan
# - name: bundle
# value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:353fa2cda9855217cfcec3303973b666a10f384795630cf0eb13b874c24b0f7a
# - name: kind
# value: task
# resolver: bundles
# when:
# - input: $(params.skip-checks)
# operator: in
# values:
# - "false"
- name: sbom-json-check
params:
- name: IMAGE_URL
Expand Down

0 comments on commit a59ab95

Please sign in to comment.