- Notifications
You must be signed in to change notification settings - Fork928
Commit05ebece
authored
chore: enable SBOM attestation for image builds (#16852)
- Added SBOM (Software Bill of Materials) generation during Docker buildto enhance traceability. Refer to Docker documentation on SBOM:https://docs.docker.com/build/metadata/attestations/sbom/- Updated Docker build scripts to use BuildKit for provenance and SBOMsupport:https://docs.docker.com/build/metadata/attestations/- Configured Docker daemon in dogfood image to support the Containerdsnapshotter feature to improve performance:https://docs.docker.com/engine/storage/containerd/> [!Important]> We also need to enable `containerd` on depot runners.> <img width="587" alt="image"src="https://github.com/user-attachments/assets/1d7f87c7-fdcc-462a-babe-87ac6486ad09"/>## Testing- Tested locally with ` docker buildx build --sbom=true --outputtype=local,dest=out -f Dockerfile .` to verify that an SBOM file isgenerated.- Tested in[CI](https://github.com/coder/coder/actions/runs/13731162662/job/38408790980?pr=16852#step:17:1)to ensure the image builds without any errors.Alsoclosescoder/internal#881 parent8c0350e commit05ebece
File tree
3 files changed
+8
-2
lines changed- .github/workflows
- dogfood/contents/files/etc/docker
- scripts
3 files changed
+8
-2
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
| 364 | + | |
364 | 365 |
| |
365 | 366 |
| |
366 | 367 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
| 143 | + | |
| 144 | + | |
143 | 145 |
| |
144 | 146 |
| |
145 | 147 |
| |
|
0 commit comments
Comments
(0)