From e7a3691ee27c76d4a987215c5f0e4256514a61fd Mon Sep 17 00:00:00 2001 From: Jamie O'Meara Date: Wed, 19 May 2021 16:50:11 -0600 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 38 +++++++++---------------------------- 1 file changed, 9 insertions(+), 29 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index abf791c55..45b3a6f4a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -73,35 +73,15 @@ jobs: run: | pack build ghcr.io/octodemo/spring-petclinic/spring-petclinic:${{ github.sha }} --builder paketobuildpacks/builder:base --env 'BP_JVM_VERSION=8.*' --tag ghcr.io/octodemo/spring-petclinic/spring-petclinic:latest --publish -# - name: 🛡 Scan container image for vulnerabilities -# uses: anchore/scan-action@v2 -# id: scan -# with: -# image: "ghcr.io/octodemo/spring-petclinic/spring-petclinic:latest" -# acs-report-enable: true - - # - name: ⬆️ Upload Anchore scan SARIF report - # uses: github/codeql-action/upload-sarif@v1 - # with: - # sarif_file: ${{ steps.scan.outputs.sarif }} - - - name: 🚓 Run Snyk to check Docker image for vulnerabilities - # Snyk can be used to break the build when it detects vulnerabilities. - # In this case we want to upload the issues to GitHub Code Scanning - continue-on-error: true - uses: snyk/actions/docker@master - id: snyk - env: - # In order to use the Snyk Action you will need to have a Snyk API token. - # More details in https://github.com/snyk/actions#getting-your-snyk-token - # or you can signup for free at https://snyk.io/login - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + - name: 🛡 Scan container image for vulnerabilities + uses: anchore/scan-action@v2 + id: scan with: - image: ghcr.io/octodemo/spring-petclinic/spring-petclinic:latest - - name: ls - run: - ls - - name: ⬆️ Upload result to GitHub Code Scanning + image: "ghcr.io/octodemo/spring-petclinic/spring-petclinic:latest" + acs-report-enable: true + + - name: ⬆️ Upload Anchore scan SARIF report uses: github/codeql-action/upload-sarif@v1 with: - sarif_file: results.sarif + sarif_file: ${{ steps.scan.outputs.sarif }} +