Skip to content

Commit

Permalink
sast-coverity-check: make the upload step work again
Browse files Browse the repository at this point in the history
After a recent automatic update of the `oras` base image,
the `select-oci-auth` binary started to fail with:
```
/usr/local/bin/select-oci-auth: line 26: get-reference-base: command not found
```

Update the `coverity` image to a release where the above bug is fixed.

Related: https://issues.redhat.com/browse/OSH-805
Closes: #1877
  • Loading branch information
kdudka committed Jan 31, 2025
1 parent 1864a84 commit c366291
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ spec:
- $(params.SOURCE_ARTIFACT)=/var/workdir/source
- $(params.CACHI2_ARTIFACT)=/var/workdir/cachi2
- name: prepare
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
workingDir: /var/workdir
volumeMounts:
- mountPath: /etc/secrets/cov
Expand Down Expand Up @@ -374,7 +374,7 @@ spec:
exit $EC
fi
- name: build
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
args:
- --build-args
- $(params.BUILD_ARGS[*])
Expand Down Expand Up @@ -703,7 +703,7 @@ spec:
add:
- SETFCAP
- name: postprocess
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
workingDir: /var/workdir
volumeMounts:
- mountPath: /mnt/trusted-ca
Expand Down
6 changes: 3 additions & 3 deletions task/sast-coverity-check/0.2/patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
- op: replace
path: /spec/steps/0/image
# New image shoould be based on quay.io/konflux-ci/buildah-task:latest or have all the tooling that the original image has.
value: quay.io/redhat-services-prod/sast/coverity:202412.1
value: quay.io/redhat-services-prod/sast/coverity:202412.2

# Change build step resources
- op: replace
Expand Down Expand Up @@ -153,7 +153,7 @@
path: /spec/steps/0
value:
name: prepare
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
workingDir: $(workspaces.source.path)
env:
- name: COV_ANALYZE_ARGS
Expand Down Expand Up @@ -276,7 +276,7 @@
path: /spec/steps/2
value:
name: postprocess
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
computeResources:
limits:
memory: 4Gi
Expand Down
6 changes: 3 additions & 3 deletions task/sast-coverity-check/0.2/sast-coverity-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ spec:
value: $(params.COV_ANALYZE_ARGS)
- name: DOCKERFILE
value: $(params.DOCKERFILE)
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
name: prepare
script: |
#!/bin/bash
Expand Down Expand Up @@ -345,7 +345,7 @@ spec:
/shared:/shared
/shared/license.dat:/opt/coverity/bin/license.dat
/usr/libexec/csgrep-static:/usr/libexec/csgrep-static
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
name: build
script: |
#!/bin/bash
Expand Down Expand Up @@ -669,7 +669,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.labels['appstudio.openshift.io/component']
image: quay.io/redhat-services-prod/sast/coverity:202412.1
image: quay.io/redhat-services-prod/sast/coverity:202412.2
name: postprocess
script: |
#!/bin/bash -e
Expand Down

0 comments on commit c366291

Please sign in to comment.