Skip to content

Add support-policy external reference type #632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 1.7-dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions schema/bom-1.7.proto
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ enum ExternalReferenceType {
EXTERNAL_REFERENCE_TYPE_RFC_9116 = 41;
// Reference to release notes
EXTERNAL_REFERENCE_TYPE_RELEASE_NOTES = 42;
// A document specifying the lifecycle phase of the component and its support status. The document might be machine-readable (Common Lifecycle Enumeration, OpenEOX) or human-readable.
EXTERNAL_REFERENCE_TYPE_SUPPORT_POLICY = 43;
}

enum HashAlg {
Expand Down
2 changes: 2 additions & 0 deletions schema/bom-1.7.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,7 @@
"electronic-signature",
"digital-signature",
"rfc-9116",
"support-policy",
"other"
],
"meta:enum": {
Expand Down Expand Up @@ -1850,6 +1851,7 @@
"electronic-signature": "An e-signature is commonly a scanned representation of a written signature or a stylized script of the person's name.",
"digital-signature": "A signature that leverages cryptography, typically public/private key pairs, which provides strong authenticity verification.",
"rfc-9116": "Document that complies with [RFC 9116](https://www.ietf.org/rfc/rfc9116.html) (A File Format to Aid in Security Vulnerability Disclosure)",
"support-policy": "A document specifying the lifecycle phase of the component and its support policy. The document might be machine-readable (Common Lifecycle Enumeration, OpenEOX) or human-readable.",
"other": "Use this if no other types accurately describe the purpose of the external reference."
}
},
Expand Down
5 changes: 5 additions & 0 deletions schema/bom-1.7.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1578,6 +1578,11 @@ limitations under the License.
<xs:documentation>Document that complies with RFC-9116 (A File Format to Aid in Security Vulnerability Disclosure)</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="support-policy">
<xs:annotation>
<xs:documentation>A document specifying the lifecycle phase of the component and its support status. The document might be machine-readable (Common Lifecycle Enumeration, OpenEOX) or human-readable.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="other">
<xs:annotation>
<xs:documentation>Use this if no other types accurately describe the purpose of the external reference</xs:documentation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@
"type": "rfc-9116",
"url": "http://example.com/extref/rfc-9116"
},
{
"type": "support-policy",
"url": "https://example.com/extref/cle.json"
},
{
"type": "other",
"url": "http://example.com/extref/other"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ components {
type: EXTERNAL_REFERENCE_TYPE_RFC_9116
url: "http://example.com/extref/rfc-9116"
}
external_references {
type: EXTERNAL_REFERENCE_TYPE_SUPPORT_POLICY
url: "https://example.com/extref/cle.json"
}
external_references {
type: EXTERNAL_REFERENCE_TYPE_OTHER
url: "http://example.com/extref/other"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
<reference type="electronic-signature"><url>http://example.com/extref/electronic-signature</url></reference>
<reference type="digital-signature"><url>http://example.com/extref/digital-signature</url></reference>
<reference type="rfc-9116"><url>http://example.com/extref/rfc-9116</url></reference>
<reference type="support-policy"><url>https://example.com/extref/cle.json</url></reference>
<reference type="other"><url>http://example.com/extref/other</url></reference>
</externalReferences>
</component>
Expand Down