Test using anchore api call docker image scan
@@ -22,6 +22,8 @@ jobs:
HADOLINT_ACTION_COMMENT: false
- name: build container
run: docker build --file cmd/http-content-check/Dockerfile --tag $IMAGE_NAME .
+ - name: scan docker image
+ run: curl -s https://ci-tools.anchore.io/inline_scan-v0.6.0 | bash -s -- -f -d Dockerfile -b .anchore-policy.json $IMAGE_NAME
- name: Log into docker hub
run: echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u integrii --password-stdin
- name: Push new latest image
