pull before trivy
This commit is contained in:
6
.github/workflows/build.yaml
vendored
6
.github/workflows/build.yaml
vendored
@@ -354,6 +354,12 @@ jobs:
|
||||
--output sbom-repo.json \
|
||||
.
|
||||
|
||||
- name: Pull the Docker image
|
||||
env:
|
||||
IMAGE_DIGEST: ${{ fromJSON(needs.build-image.outputs.metadata).regular.digest }}
|
||||
run: |
|
||||
docker pull "${{ env.IMAGE }}@${IMAGE_DIGEST}"
|
||||
|
||||
- name: Generate image SBOM with Trivy
|
||||
env:
|
||||
IMAGE_DIGEST: ${{ fromJSON(needs.build-image.outputs.metadata).regular.digest }}
|
||||
|
||||
Reference in New Issue
Block a user