Skip to content

Commit

Permalink
Switch to Trivy action for image scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Nov 15, 2024
1 parent 880fc9d commit dd5444d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,14 @@ jobs:
with:
name: docker-image-${{ matrix.image }}
path: ./docker-image
- run: docker load --input ./docker-image/image.tar
if: contains(matrix.image, 'alpine')
- run: make ci-scan-vulnerability
- name: Run Trivy vulnerability scanner in tarball mode
if: contains(matrix.image, 'alpine')
uses: aquasecurity/[email protected]
with:
input: ./docker-image/image.tar
format: 'github'
exit-code: '1'
hide-progress: true
test:
name: Testing "${{ matrix.image }}"
needs:
Expand Down
2 changes: 1 addition & 1 deletion test-nts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ docker run --rm -t \
renatomefi/docker-testinfra:5 \
-m "$TEST_SUITE" --junitxml="/results/php-nts-$DOCKER_TAG.xml" \
--disable-pytest-warnings \
--verbose --hosts="docker://$DOCKER_CONTAINER"
--verbose --hosts="docker://$DOCKER_CONTAINER"
2 changes: 1 addition & 1 deletion test-zts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ docker run --rm -t \
renatomefi/docker-testinfra:5 \
-m "$TEST_SUITE" --junitxml="/results/php-zts-$DOCKER_TAG.xml" \
--disable-pytest-warnings \
--verbose --hosts="docker://$DOCKER_CONTAINER"
--verbose --hosts="docker://$DOCKER_CONTAINER"

0 comments on commit dd5444d

Please sign in to comment.