Skip to content

Commit 3595d7c

Browse files
committed
simplified image tags in gh actions builds
1 parent c1ffd91 commit 3595d7c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,17 @@ jobs:
3838
TARGET: linux/amd64
3939
BUILD_FLAGS: --load --no-cache
4040
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
4641
- name: Run Trivy Vulnerability Scanner for Root Image
4742
uses: aquasecurity/trivy-action@master
4843
with:
49-
image-ref: '${{ steps.image_id.outputs.ROOT_IMAGE_ID }}'
44+
image-ref: 'ghcr.io/groundnuty/k8s-wait-for:latest'
5045
exit-code: 1
5146
format: 'sarif'
5247
output: 'trivy-results-root.sarif'
5348
- name: Run Trivy Vulnerability Scanner for Non-Root Image
5449
uses: aquasecurity/trivy-action@master
5550
with:
56-
image-ref: '${{ steps.image_id.outputs.NON_ROOT_IMAGE_ID }}'
51+
image-ref: 'ghcr.io/groundnuty/k8s-wait-for:no-root-latest'
5752
exit-code: 1
5853
format: 'sarif'
5954
output: 'trivy-results-non-root.sarif'

0 commit comments

Comments
 (0)