Skip to content

Commit 88da58a

Browse files
committed
fix(ci): use --input flag for trivy OCI archive scan
The 'oci-archive:' prefix is not a valid image reference for 'trivy image'. Use --input flag to specify the local archive path. https://claude.ai/code/session_01UQCFLkpP9z23jGo7zgAjvB
1 parent 5dc6d51 commit 88da58a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
trivy image \
117117
--severity HIGH,CRITICAL \
118118
--exit-code 1 \
119-
"oci-archive:build/${IMAGE_NAME}.tar"
119+
--input "build/${IMAGE_NAME}.tar"
120120
121121
- name: Login to GHCR
122122
env:

0 commit comments

Comments
 (0)