diff --git a/task/clamav-scan/0.1/clamav-scan.yaml b/task/clamav-scan/0.1/clamav-scan.yaml index cd635c0ce2..bfbee93412 100644 --- a/task/clamav-scan/0.1/clamav-scan.yaml +++ b/task/clamav-scan/0.1/clamav-scan.yaml @@ -197,10 +197,8 @@ spec: echo "Selecting auth" select-oci-auth $IMAGE_URL > $HOME/auth.json - echo "Attaching to ${IMAGE_URL} via the OCI 1.1 Referrers API" - oras attach --no-tty --registry-config "$HOME/auth.json" --distribution-spec v1.1-referrers-api --artifact-type application/vnd.clamav "${IMAGE_URL}" "${args[@]}" - echo "Attaching to ${IMAGE_URL} via the OCI 1.1 Referrers Tag" - oras attach --no-tty --registry-config "$HOME/auth.json" --distribution-spec v1.1-referrers-tag --artifact-type application/vnd.clamav "${IMAGE_URL}" "${args[@]}" + echo "Attaching to ${IMAGE_URL}" + oras attach --no-tty --registry-config "$HOME/auth.json" --artifact-type application/vnd.clamav "${IMAGE_URL}" "${args[@]}" volumeMounts: - mountPath: /work name: work diff --git a/task/sast-snyk-check-oci-ta/0.2/sast-snyk-check-oci-ta.yaml b/task/sast-snyk-check-oci-ta/0.2/sast-snyk-check-oci-ta.yaml index 972c00e4f5..70cc1cbd29 100644 --- a/task/sast-snyk-check-oci-ta/0.2/sast-snyk-check-oci-ta.yaml +++ b/task/sast-snyk-check-oci-ta/0.2/sast-snyk-check-oci-ta.yaml @@ -146,7 +146,5 @@ spec: echo "Selecting auth" select-oci-auth $IMAGE_URL >$HOME/auth.json - echo "Attaching to ${IMAGE_URL} via the OCI 1.1 Referrers API" - oras attach --no-tty --registry-config "$HOME/auth.json" --distribution-spec v1.1-referrers-api --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}" - echo "Attaching to ${IMAGE_URL} via the OCI 1.1 Referrers Tag" - oras attach --no-tty --registry-config "$HOME/auth.json" --distribution-spec v1.1-referrers-tag --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}" + echo "Attaching to ${IMAGE_URL}" + oras attach --no-tty --registry-config "$HOME/auth.json" --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}" diff --git a/task/sast-snyk-check/0.2/sast-snyk-check.yaml b/task/sast-snyk-check/0.2/sast-snyk-check.yaml index 835e13ec13..4a239e8ca3 100644 --- a/task/sast-snyk-check/0.2/sast-snyk-check.yaml +++ b/task/sast-snyk-check/0.2/sast-snyk-check.yaml @@ -122,9 +122,7 @@ spec: echo "Selecting auth" select-oci-auth $IMAGE_URL > $HOME/auth.json - echo "Attaching to ${IMAGE_URL} via the OCI 1.1 Referrers API" - oras attach --no-tty --registry-config "$HOME/auth.json" --distribution-spec v1.1-referrers-api --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}" - echo "Attaching to ${IMAGE_URL} via the OCI 1.1 Referrers Tag" - oras attach --no-tty --registry-config "$HOME/auth.json" --distribution-spec v1.1-referrers-tag --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}" + echo "Attaching to ${IMAGE_URL}" + oras attach --no-tty --registry-config "$HOME/auth.json" --artifact-type "${MEDIA_TYPE}" "${IMAGE_URL}" "${UPLOAD_FILE}:${MEDIA_TYPE}" workspaces: - name: workspace