File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -38,22 +38,17 @@ jobs:
38
38
TARGET : linux/amd64
39
39
BUILD_FLAGS : --load --no-cache
40
40
run : make images
41
- - name : Retrieve version
42
- run : |
43
- echo "::set-output name=ROOT_IMAGE_ID::$(docker images --filter=reference="*/*:v*${GITHUB_SHA::7}" --format '{{.ID}}')"
44
- echo "::set-output name=NON_ROOT_IMAGE_ID::$(docker images --filter=reference="*/*:no-root-v*${GITHUB_SHA::7}" --format '{{.ID}}')"
45
- id : image_id
46
41
- name : Run Trivy Vulnerability Scanner for Root Image
47
42
uses : aquasecurity/trivy-action@master
48
43
with :
49
- image-ref : ' ${{ steps.image_id.outputs.ROOT_IMAGE_ID }} '
44
+ image-ref : ' ghcr.io/groundnuty/k8s-wait-for:latest '
50
45
exit-code : 1
51
46
format : ' sarif'
52
47
output : ' trivy-results-root.sarif'
53
48
- name : Run Trivy Vulnerability Scanner for Non-Root Image
54
49
uses : aquasecurity/trivy-action@master
55
50
with :
56
- image-ref : ' ${{ steps.image_id.outputs.NON_ROOT_IMAGE_ID }} '
51
+ image-ref : ' ghcr.io/groundnuty/k8s-wait-for:no-root-latest '
57
52
exit-code : 1
58
53
format : ' sarif'
59
54
output : ' trivy-results-non-root.sarif'
You can’t perform that action at this time.
0 commit comments