|
86 | 86 | cpu: "16"
|
87 | 87 | # per https://kubernetes.io/docs/concepts/containers/images/#imagepullpolicy-defaulting
|
88 | 88 | # the cluster will set imagePullPolicy to IfNotPresent
|
89 |
| - workingDir: $(workspaces.workspace.path)/hacbs/$(context.task.name) |
| 89 | + workingDir: $(workspaces.source.path)/hacbs/$(context.task.name) |
90 | 90 | volumeMounts:
|
91 | 91 | - name: cov-license
|
92 | 92 | mountPath: "/etc/secrets/cov"
|
@@ -130,9 +130,9 @@ spec:
|
130 | 130 | echo "The PROJECT_NAME used is: ${PROJECT_NAME}"
|
131 | 131 |
|
132 | 132 | COVERITY_DIR=/var/tmp/coverity/idir
|
133 |
| - COVERITY_RESULTS_FILE=$(workspaces.workspace.path)/coverity-buildless-results.json |
| 133 | + COVERITY_RESULTS_FILE=$(workspaces.source.path)/coverity-buildless-results.json |
134 | 134 | COV_LICENSE_PATH=/etc/secrets/cov/cov-license
|
135 |
| - SOURCE_CODE_DIR=$(workspaces.workspace.path) |
| 135 | + SOURCE_CODE_DIR=$(workspaces.source.path) |
136 | 136 |
|
137 | 137 | # Installing Coverity license
|
138 | 138 | cp "$COV_LICENSE_PATH" /opt/coverity/bin/license.dat
|
@@ -227,23 +227,23 @@ spec:
|
227 | 227 | (set -x $$ csgrep --mode=evtstat filtered_sast_coverity_buildless_check_all_findings.json)
|
228 | 228 | fi
|
229 | 229 |
|
230 |
| - csgrep --mode=sarif filtered_sast_coverity_buildless_check_all_findings.json > "$(workspaces.workspace.path)"/coverity-results.sarif |
| 230 | + csgrep --mode=sarif filtered_sast_coverity_buildless_check_all_findings.json > "$(workspaces.source.path)"/coverity-results.sarif |
231 | 231 |
|
232 | 232 | if [[ -z "$(csgrep --mode=evtstat filtered_sast_coverity_buildless_check_all_findings.json)" ]]; then
|
233 | 233 | note="Task $(context.task.name) success: No finding was detected"
|
234 | 234 | ERROR_OUTPUT=$(make_result_json -r SUCCESS -t "$note")
|
235 | 235 | echo "${ERROR_OUTPUT}" | tee "$(results.TEST_OUTPUT.path)"
|
236 | 236 | else
|
237 | 237 | TEST_OUTPUT=
|
238 |
| - parse_test_output "$(context.task.name)" sarif "$(workspaces.workspace.path)"/coverity-results.sarif || true |
| 238 | + parse_test_output "$(context.task.name)" sarif "$(workspaces.source.path)"/coverity-results.sarif || true |
239 | 239 | note="Task $(context.task.name) failed: For details, check Tekton task log."
|
240 | 240 | echo "${ERROR_OUTPUT}" | tee "$(results.TEST_OUTPUT.path)"
|
241 | 241 | fi
|
242 | 242 |
|
243 | 243 | echo "${TEST_OUTPUT:-${ERROR_OUTPUT}}" | tee "$(results.TEST_OUTPUT.path)"
|
244 | 244 | - name: upload
|
245 | 245 | image: quay.io/konflux-ci/oras:latest@sha256:99737f436051e6d3866eb8a8706463c35abf72c87f05090ff42ff642f6729661
|
246 |
| - workingDir: $(workspaces.workspace.path) |
| 246 | + workingDir: $(workspaces.source.path) |
247 | 247 | env:
|
248 | 248 | - name: IMAGE_URL
|
249 | 249 | value: $(params.image-url)
|
@@ -273,4 +273,4 @@ spec:
|
273 | 273 | oras attach --no-tty --registry-config "$HOME/auth.json" --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}"
|
274 | 274 | done
|
275 | 275 | workspaces:
|
276 |
| - - name: workspace |
| 276 | + - name: source |
0 commit comments