mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 17:35:49 +00:00
commit
265101c98d
1 changed files with 7 additions and 4 deletions
11
.github/workflows/maven.yml
vendored
11
.github/workflows/maven.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
# This workflow will build a Java project with Maven
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
||||
|
||||
name: build-and-test
|
||||
name: Build and Test Image
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -69,16 +69,19 @@ jobs:
|
|||
|
||||
- uses: andrioid/setup-pack@v1.0.1
|
||||
|
||||
- name: "😆 Image using Pack"
|
||||
- name: "😎 Build container image with CNB pack"
|
||||
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
|
||||
|
||||
- uses: anchore/scan-action@v2
|
||||
- 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
|
||||
|
||||
- name: ⬆️ Upload Anchore scan SARIF report
|
||||
uses: github/codeql-action/upload-sarif@v1
|
||||
with:
|
||||
sarif_file: ${{ steps.scan.outputs.sarif }}
|
||||
|
||||
|
|
Loading…
Reference in a new issue