Skip to content

Commit

Permalink
Merge pull request #31 from catenax-ng/main
Browse files Browse the repository at this point in the history
chore: switch Trivy build to local image
  • Loading branch information
ds-jkreutzfeld authored Feb 17, 2023
2 parents 16406c1 + c25ec76 commit fa8f944
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fa8f944

Please sign in to comment.