diff --git a/.github/workflows/test_docker.yml b/.github/workflows/test_docker.yml index b6f601177..cf625af4e 100644 --- a/.github/workflows/test_docker.yml +++ b/.github/workflows/test_docker.yml @@ -39,6 +39,15 @@ jobs: - name: Build Docker image run: | bash utils/docker/build.sh --${{ matrix.arch }} ${{ matrix.flavor }} playwright-java:localbuild-${{ matrix.flavor }} + # The scan looks at the content of the files, in all layers of the image. + - name: Scan the image for secrets + uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0 + with: + image-ref: playwright-java:localbuild-${{ matrix.flavor }} + scanners: secret + exit-code: '1' + # The secret scan needs no vulnerability database. + cache: 'false' - name: Start container run: | CONTAINER_ID=$(docker run \