From c25ec765563b0e5ffd6beb36562e50b880521a10 Mon Sep 17 00:00:00 2001 From: Dirk Blank Date: Fri, 17 Feb 2023 14:21:39 +0100 Subject: [PATCH] chore: switch Trivy build to local image Pulling from the eclipse-tractusx registry has login issues. --- .github/workflows/trivy.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 610b6b462e..0fe0f79cd0 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -73,12 +73,8 @@ jobs: with: ref: ${{needs.prepare-env.outputs.check_sha}} - - name: Login to Docker Registry - uses: docker/login-action@v2 - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: Build docker image + run: ./gradlew jibDockerBuild -x test --image=${{ env.REGISTRY }}/${{ github.repository }}:${{needs.prepare-env.outputs.check_sha}} - name: Run Trivy vulnerability scanner if: always()