Skip to content

Commit 67f3282

Browse files
committed
Add SBOM extraction instructions
1 parent c7b6001 commit 67f3282

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,17 @@ To know more command-line options of `jq`:
5656
docker run --rm --net=none leplusorg/json jq -h
5757
```
5858

59+
## Software Bill of Materials (SBOM)
60+
61+
To get the SBOM for the latest image (in SPDX JSON format), use the
62+
following command:
63+
64+
```bash
65+
docker buildx imagetools inspect leplusorg/json --format '{{ json (index .SBOM "linux/amd64").SPDX }}'
66+
```
67+
68+
Replace `linux/amd64` by the desired platform (`linux/amd64`, `linux/arm64` etc.).
69+
5970
## Request new tool
6071

6172
Please use [this link](https://github.com/leplusorg/docker-json/issues/new?assignees=thomasleplus&labels=enhancement&template=feature_request.md&title=%5BFEAT%5D) (GitHub account required) to request that a new tool be added to the image. I am always interested in adding new capabilities to these images.

0 commit comments

Comments
 (0)