Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 31258e9

Browse files
Update attestation script to include README.md in artifact attestations and enhance README with detailed scenario description
1 parent 3d24123 commit 31258e9

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

multi-repo-attestation/1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tree -L 4
2525
cd devbox-demo
2626
echo "Current directory: $(pwd)"
2727
echo "Attesting devbox-demo repository"
28-
kosli attest generic --name app.sbom --trail ${GIT_COMMIT} --commit ${GIT_COMMIT} --attachments README.md
2928
kosli attest generic --name app.sbom --trail ${GIT_COMMIT} --attachments LICENSE
29+
kosli attest generic --name app.sbom --trail ${GIT_COMMIT} --commit ${GIT_COMMIT} --attachments README.md
3030

3131
kosli get trail -o json ${GIT_COMMIT} > data.json

multi-repo-attestation/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,41 @@
22

33
Create a scenario where you clone down a 2nd repo, and performs an attestation in that. What git commit is stored in kosli? And if you provide a --commit, are both then stored?
44

5+
## Scenario
6+
7+
* Clone down the this repo
8+
* Attest one artifact
9+
* Clone down another repo: https://github.com/sofusalbertsen/devbox-demo
10+
* Attest files from the second repo with two different styles:
11+
* attest to the trail
12+
* Attest to the trail AND the HEAD commit from parent repo.
13+
14+
Repo looks like this:
15+
16+
```Bash
17+
.
18+
├── LICENSE
19+
├── README.md
20+
├── artifact.txt
21+
├── devbox-demo # Two files from a different git repo.
22+
│ ├── LICENSE
23+
│ └── README.md
24+
├── multi-repo-attestation
25+
│ ├── 1.sh
26+
│ ├── README.md
27+
│ └── kosli-config
28+
│ └── flow.yaml
29+
├── multi-trail-artifact
30+
│ ├── 1.sh
31+
│ ├── README.md
32+
│ ├── kosli-config
33+
│ │ └── flow.yaml
34+
│ └── show-trails.sh
35+
└── template-complete
36+
├── 1.sh
37+
├── 2.sh
38+
├── README.md
39+
├── check-template-complete.sh
40+
└── kosli-config
41+
└── flow.yaml
42+
```

0 commit comments

Comments
 (0)