Skip to content

Commit dd37d9b

Browse files
committed
testing attest
1 parent 0c2dcce commit dd37d9b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/attest.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build-attested-component
2+
3+
on:
4+
push:
5+
branches: [cosign]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
packages: write
13+
contents: read
14+
attestations: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Attest
19+
uses: actions/attest@v1
20+
id: attest
21+
with:
22+
subject-name: ghcr.io/yoshuawuyts/rust-wasi-hello:0.1.0
23+
# subject-digest: ${{ steps.push.outputs.digest }}
24+
subject-digest: sha256:67940472ac167f1c79224ee645ba59ca54483d95c633f9e67a4d16719d1fa356
25+
predicate-type: "https://in-toto.io/attestation/release/v0.1"
26+
predicate: '{"purl":"pkg:oci/..."}'
27+
push-to-registry: true

0 commit comments

Comments
 (0)