Skip to content

Commit

Permalink
Namespace these two results
Browse files Browse the repository at this point in the history
Make it clear that they are not trying to be standard results, common
across tasks. They are meant for consumers who know the details of this
particular task.

Signed-off-by: Ralph Bean <[email protected]>
  • Loading branch information
ralphbean committed Jun 17, 2024
1 parent e621567 commit d3d96dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions task/clamav-scan/0.1/clamav-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
description: Tekton task test output.
- name: IMAGES_PROCESSED
description: Images processed in the task.
- name: RESULT_URI
- name: CLAMAV_RESULT_URI
description: OCI pullspec where the full clamav output can be found.
params:
- name: image-digest
Expand Down Expand Up @@ -159,7 +159,7 @@ spec:
REPO="${REPO[0]}"
DIGEST=$(echo "${IMAGE_DIGEST}" | tr : -)
SUFFIX=clamav
RESULT_URI="${REPO}:${DIGEST}.${SUFFIX}"
CLAMAV_RESULT_URI="${REPO}:${DIGEST}.${SUFFIX}"
cd logs
Expand All @@ -171,8 +171,8 @@ spec:
MEDIA_TYPE=application/vnd.konflux.test_output+json
args+=("${UPLOAD_FILE}:${MEDIA_TYPE}")
done
retry oras push --no-tty --registry-config "$HOME/.docker/config.json" "${RESULT_URI}" "${args[@]}"
echo "${RESULT_URI}" > $(results.RESULT_URI.path)
retry oras push --no-tty --registry-config "$HOME/.docker/config.json" "${CLAMAV_RESULT_URI}" "${args[@]}"
echo "${CLAMAV_RESULT_URI}" > $(results.CLAMAV_RESULT_URI.path)
volumeMounts:
- mountPath: /work
name: work
Expand Down
8 changes: 4 additions & 4 deletions task/sast-snyk-check/0.1/sast-snyk-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
- description: Tekton task test output.
name: TEST_OUTPUT
- description: OCI pullspec where the full SARIF result can be found.
name: RESULT_URI
name: SAST_RESULT_URI
params:
- name: SNYK_SECRET
description: Name of secret which contains Snyk token.
Expand Down Expand Up @@ -120,9 +120,9 @@ spec:
IFS=':' read -ra REPO <<< "$IMAGE_URL"
REPO="${REPO[0]}"
DIGEST=$(echo "${IMAGE_DIGEST}" | tr : -)
RESULT_URI="${REPO}:${DIGEST}.${SUFFIX}"
SAST_RESULT_URI="${REPO}:${DIGEST}.${SUFFIX}"
retry oras push --no-tty --registry-config "$HOME/.docker/config.json" "${RESULT_URI}" "${UPLOAD_FILE}:${MEDIA_TYPE}"
echo "${RESULT_URI}" > $(results.RESULT_URI.path)
retry oras push --no-tty --registry-config "$HOME/.docker/config.json" "${SAST_RESULT_URI}" "${UPLOAD_FILE}:${MEDIA_TYPE}"
echo "${SAST_RESULT_URI}" > $(results.SAST_RESULT_URI.path)
workspaces:
- name: workspace

0 comments on commit d3d96dc

Please sign in to comment.