mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
Start sending artifacts and metadata to Chainloop to to meet SecOps requirements (#1)
* Adding Chainloop * Meet requirements enforced by the SecOps team and provide information about built binary * Use the latest Github Action actions/setup-java@v3 --------- Signed-off-by: Daniel Liszka <daniel@chainloop.dev>
This commit is contained in:
parent
cc9ba8f939
commit
fb68308e30
2 changed files with 20 additions and 1 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
attestation:
|
||||||
|
- name: binary
|
||||||
|
path: artifacts/spring-petclinic-*.jar
|
18
.github/workflows/maven-build.yml
vendored
18
.github/workflows/maven-build.yml
vendored
|
@ -20,10 +20,26 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK ${{matrix.java}}
|
- name: Set up JDK ${{matrix.java}}
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: ${{matrix.java}}
|
java-version: ${{matrix.java}}
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven Wrapper
|
- name: Build with Maven Wrapper
|
||||||
run: ./mvnw -B package
|
run: ./mvnw -B package
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: artifacts
|
||||||
|
path: target/*.jar
|
||||||
|
|
||||||
|
chainloop:
|
||||||
|
name: Chainloop
|
||||||
|
uses: chainloop-dev/labs/.github/workflows/chainloop.yml@a75dff2ef342a1e5c5e1ec5c42fb99f3d1bc03cb
|
||||||
|
needs: build
|
||||||
|
# with:
|
||||||
|
# contract_revision: 3
|
||||||
|
secrets:
|
||||||
|
api_token: ${{ secrets.CHAINLOOP_ROBOT_ACCOUNT }}
|
||||||
|
signing_key: ${{ secrets.PRIVATE_KEY }}
|
||||||
|
signing_key_password: ${{ secrets.PRIVATE_KEY_PASSWORD }}
|
Loading…
Reference in a new issue