We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6489460 + acd077c commit 014fac2Copy full SHA for 014fac2
1 file changed
.github/workflows/release.yaml
@@ -101,14 +101,22 @@ jobs:
101
IMAGE_NAME: ${{ steps.manifest.outputs.image_name }}
102
run: dive --ci --source=docker "${IMAGE_NAME}:${IMAGE_VERSION}"
103
104
+ - name: Cache Trivy vulnerability DB
105
+ uses: actions/cache@v4
106
+ with:
107
+ path: ~/.cache/trivy
108
+ key: trivy-db-${{ runner.os }}-${{ github.run_id }}
109
+ restore-keys: |
110
+ trivy-db-${{ runner.os }}-
111
+
112
- name: Trivy vulnerability scan
113
env:
114
115
run: |
116
trivy image \
- --input "build/${IMAGE_NAME}.tar" \
117
--severity HIGH,CRITICAL \
- --exit-code 1
118
+ --exit-code 1 \
119
+ "oci-archive:build/${IMAGE_NAME}.tar"
120
121
- name: Login to GHCR
122
0 commit comments