Skip to content

Commit a0e80fd

Browse files
committed
Add SBOM extraction instructions
1 parent 58c8d8c commit a0e80fd

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
@@ -64,6 +64,17 @@ To know more command-line options of `xmllint`:
6464
docker run --rm --net=none leplusorg/xml xmllint --help
6565
```
6666

67+
## Software Bill of Materials (SBOM)
68+
69+
To get the SBOM for the latest image (in SPDX JSON format), use the
70+
following command:
71+
72+
```bash
73+
docker buildx imagetools inspect leplusorg/xml --format '{{ json (index .SBOM "linux/amd64").SPDX }}'
74+
```
75+
76+
Replace `linux/amd64` by the desired platform (`linux/amd64`, `linux/arm64` etc.).
77+
6778
## Request new tool
6879

6980
Please use [this link](https://github.com/leplusorg/docker-xml/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)