kubernetes-sigs / bom

A utility to generate SPDX-compliant Bill of Materials manifests

Home Page:https://kubernetes-sigs.github.io/bom/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Weird timestamp format in SPDX document

lumjjb opened this issue · comments

What happened:

One of the SPDX documents for k8s releases has an incorrect date format:

What you expected to happen:

The "Created" field has a datetime format that is inconsistent with commonly used layouts (it looks like the code seems to want to use YYYY-MM-DD as well, which is why it's a little confusing).

SPDXVersion: SPDX-2.2
DataLicense: CC0-1.0
SPDXID: SPDXRef-DOCUMENT
DocumentName: kubernetes-v1.21.2
DocumentNamespace: https://k8s.io/sbom/source/v1.21.2
Creator: Tool: k8s.io/release/pkg/spdx
Created: 2021-16-06T13:41:24Z

How to reproduce it (as minimally and precisely as possible):

curl -L https://sbom.k8s.io/v1.21.2/source | grep "Created:"

Anything else we need to know?:

N/A. Let me know if this should be opened elsewhere!

Environment:

N/A

for visibility: @goneall ref: spdx/spdx-to-osv#6

@lumjjb what's wrong with it? What do you mean "commonly used"? I think the date conforms to the spec, doesn't it?

image

Ah got it got. No it used to be a bug at some point, but it was fixed like six months ago in 07a4d4d

Thanks for reporting!
/close

@puerco: Closing this issue.

In response to this:

Ah got it got. No it used to be a bug at some point, but it was fixed like six months ago in 07a4d4d

Thanks for reporting!
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.