Fixed SBOM command and bumped SPDX version to 2.3 (#40982)
* Fixed SBOM command and bumped SPDX version to 2.3 * Revert SBOM changes for lang/zh-cnpull/38816/head^2
parent
5a08f63a79
commit
3df20c4573
|
@ -78,7 +78,7 @@ in `KEYLESS` mode. To learn more about keyless signing, please refer to
|
|||
To verify all signed control plane images, please run this command:
|
||||
|
||||
```shell
|
||||
curl -Ls https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/latest.txt)/release | grep 'PackageName: registry.k8s.io/' | awk '{print $2}' > images.txt
|
||||
curl -Ls "https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/stable.txt)/release" | grep "SPDXID: SPDXRef-Package-registry.k8s.io" | grep -v sha256 | cut -d- -f3- | sed 's/-/\//' | sed 's/-v1/:v1/' > images.txt
|
||||
input=images.txt
|
||||
while IFS= read -r image
|
||||
do
|
||||
|
|
|
@ -37,11 +37,11 @@ container image name, for example
|
|||
those derivations are signed in the same way as the multi-architecture manifest lists.
|
||||
|
||||
The Kubernetes project publishes a list of signed Kubernetes container images
|
||||
in [SPDX 2.2](https://spdx.dev/specifications/) format.
|
||||
in [SPDX 2.3](https://spdx.dev/specifications/) format.
|
||||
You can fetch that list using:
|
||||
|
||||
```shell
|
||||
curl -Ls "https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/latest.txt)/release" | awk '/Package: registry.k8s.io\// {print $3}'
|
||||
curl -Ls "https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/stable.txt)/release" | grep "SPDXID: SPDXRef-Package-registry.k8s.io" | grep -v sha256 | cut -d- -f3- | sed 's/-/\//' | sed 's/-v1/:v1/'
|
||||
```
|
||||
For Kubernetes v{{< skew currentVersion >}}, the only kind of code artifact that
|
||||
you can verify integrity for is a container image, using the experimental
|
||||
|
|
Loading…
Reference in New Issue