File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed
Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,11 @@ jobs:
1717 - name : Install Cosign
18181919
20- - name : Install Chainloop
21- run : |
22- curl -sfL https://chainloop.dev/install.sh | bash -s -- --version v${{ env.CHAINLOOP_VERSION }}
23- sudo install chainloop /usr/local/bin
24- chainloop version
25-
2620 - name : Checkout
2721 uses : actions/checkout@v3
2822 with :
2923 fetch-depth : 0
3024
31- - name : Initialize Attestation
32- run : chainloop attestation init --contract-revision 1
33-
3425 - name : Set up Go
3526 uses : actions/setup-go@v3
3627 with :
6354 output-file : /tmp/sbom.cyclonedx.json
6455 env :
6556 IMAGE : ghcr.io/migmartri/simple-todo:${{ github.ref_name }}
66-
67- - name : Finish and Record Attestation
68- if : ${{ success() }}
69- run : |
70- chainloop attestation status --full
71- chainloop attestation push --key env://CHAINLOOP_SIGNING_KEY
72- env :
73- CHAINLOOP_SIGNING_KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
74- CHAINLOOP_SIGNING_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
75-
76- - name : Mark attestation as failed
77- if : ${{ failure() }}
78- run : |
79- chainloop attestation reset
80-
81- - name : Mark attestation as cancelled
82- if : ${{ cancelled() }}
83- run : |
84- chainloop attestation reset --trigger cancellation
85- env :
86- CHAINLOOP_VERSION : 0.8.58
87- CHAINLOOP_ROBOT_ACCOUNT : ${{ secrets.CHAINLOOP_ROBOT_ACCOUNT }}
You can’t perform that action at this time.
0 commit comments