Update maven.yml

This commit is contained in:
Jamie O'Meara 2021-05-19 16:40:22 -06:00 committed by GitHub
parent e0f9d79c2e
commit cbe2962089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,17 +73,17 @@ jobs:
run: | 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 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 # - name: 🛡 Scan container image for vulnerabilities
uses: anchore/scan-action@v2 # uses: anchore/scan-action@v2
id: scan # id: scan
with: # with:
image: "ghcr.io/octodemo/spring-petclinic/spring-petclinic:latest" # image: "ghcr.io/octodemo/spring-petclinic/spring-petclinic:latest"
acs-report-enable: true # acs-report-enable: true
- name: ⬆️ Upload Anchore scan SARIF report # - name: ⬆️ Upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v1 # uses: github/codeql-action/upload-sarif@v1
with: # with:
sarif_file: ${{ steps.scan.outputs.sarif }} # sarif_file: ${{ steps.scan.outputs.sarif }}
- name: 🚓 Run Snyk to check Docker image for vulnerabilities - name: 🚓 Run Snyk to check Docker image for vulnerabilities
# Snyk can be used to break the build when it detects vulnerabilities. # Snyk can be used to break the build when it detects vulnerabilities.