forked from cagix/pandoc-thesis
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.41 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: e2e
"on":
workflow_dispatch:
schedule:
- cron: '0 3 * * 0'
permissions: {}
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
OICD: https://token.actions.githubusercontent.com
ID: https://github.com/${{ github.repository }}/.github/workflows/build.yml@refs/heads/master
jobs:
e2e:
name: e2e
runs-on: ubuntu-latest
steps:
- name: install cosign
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da
- name: verify sign
run: |
set -x
cosign verify \
--certificate-identity "${{ env.ID}}" \
--certificate-oidc-issuer "${{ env.OICD }}" \
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" | jq .
- name: verify sbom
run: |
set -x
cosign verify-attestation \
--certificate-identity "${{ env.ID}}" \
--certificate-oidc-issuer "${{ env.OICD }}" \
--type spdx \
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" \
| jq -r .payload | base64 -d | jq .
- name: verify slsa
run: |
set -x
cosign verify-attestation \
--certificate-identity "${{ env.ID}}" \
--certificate-oidc-issuer "${{ env.OICD }}" \
--type slsaprovenance \
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" \
| jq -r .payload | base64 -d | jq .