Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvija Tovernic committed Sep 21, 2024
1 parent 6a01522 commit 250c432
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/reusable-workflow-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ jobs:
- name: Check ubuntu image with Trivy
run: |
podman pull docker.io/library/ubuntu:22.04
trivy image docker.io/library/ubuntu:22.04
podman pull wp10tfdevacr.azurecr.io/silvija-test:56
trivy image wp10tfdevacr.azurecr.io/silvija-test:56
- name: Check image with Trivy
run: |
mkdir build-artifacts
echo "=======> Print image for trivy scan:"
echo "$REGISTRY/$IMAGE_NAME:$IMAGE_TAG"
echo ""=======> Print available images:"
podman image ls
echo ""=======> Scan image with trivy:"
trivy image $REGISTRY/$IMAGE_NAME:$IMAGE_TAG >> build-artifacts/vuln-scan.txt
cat build-artifacts/vuln-scan.txt
trivy image --format spdx ubuntu:rolling >> build-artifacts/sbom-spdx.txt
trivy image --format cyclonedx ubuntu:rolling >> build-artifacts/sbom-cyclonedx.txt
# - name: Check image with Trivy
# run: |
# mkdir build-artifacts
# echo "=======> Print image for trivy scan:"
# echo "$REGISTRY/$IMAGE_NAME:$IMAGE_TAG"
# echo ""=======> Print available images:"
# podman image ls
# echo ""=======> Scan image with trivy:"
# trivy image $REGISTRY/$IMAGE_NAME:$IMAGE_TAG >> build-artifacts/vuln-scan.txt
# cat build-artifacts/vuln-scan.txt
# trivy image --format spdx ubuntu:rolling >> build-artifacts/sbom-spdx.txt
# trivy image --format cyclonedx ubuntu:rolling >> build-artifacts/sbom-cyclonedx.txt

# - name: Upload Artifacts
# uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 250c432

Please sign in to comment.