|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<bom xmlns="http://cyclonedx.org/schema/bom/1.7" |
| 3 | + serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79" |
| 4 | + version="1" |
| 5 | +> |
| 6 | + <metadata> |
| 7 | + <timestamp>2025-05-01T14:23:00Z</timestamp> |
| 8 | + <authors> |
| 9 | + <author bom-ref="person-1"> |
| 10 | + <name>Alice Example</name> |
| 11 | + <email>alice@example.com</email> |
| 12 | + </author> |
| 13 | + </authors> |
| 14 | + </metadata> |
| 15 | + <components> |
| 16 | + <component type="library" bom-ref="component-1"> |
| 17 | + <name>example-lib</name> |
| 18 | + <version>1.2.3</version> |
| 19 | + <licenses> |
| 20 | + <license> |
| 21 | + <id>Apache-2.0</id> |
| 22 | + </license> |
| 23 | + </licenses> |
| 24 | + </component> |
| 25 | + </components> |
| 26 | + <formulation> |
| 27 | + <formula bom-ref="formula-1"> |
| 28 | + <components> |
| 29 | + <component type="application" bom-ref="scan-tool-1"> |
| 30 | + <name>My Scan Tool</name> |
| 31 | + </component> |
| 32 | + </components> |
| 33 | + <workflows> |
| 34 | + <workflow bom-ref="workflow-1"> |
| 35 | + <uid>259bae74-5ec4-4de8-9386-c91b1f7719b8</uid> |
| 36 | + <name>My workflow</name> |
| 37 | + <tasks> |
| 38 | + <task bom-ref="task-license-scan"> |
| 39 | + <uid>6d75f8d6-a008-41cf-8b65-c4129fc249f9</uid> |
| 40 | + <description>License scan of the source files using OpenSourceScanner v2.1</description> |
| 41 | + <taskTypes> |
| 42 | + <taskType>scan</taskType> |
| 43 | + </taskTypes> |
| 44 | + </task> |
| 45 | + <task bom-ref="task-license-scan-2"> |
| 46 | + <uid>dfc0268a-89cb-4823-bb88-84115a06b64d</uid> |
| 47 | + <description>License scan of the source files using [REDACTED]</description> |
| 48 | + <taskTypes> |
| 49 | + <taskType>scan</taskType> |
| 50 | + </taskTypes> |
| 51 | + </task> |
| 52 | + </tasks> |
| 53 | + <taskTypes> |
| 54 | + <taskType>scan</taskType> |
| 55 | + </taskTypes> |
| 56 | + </workflow> |
| 57 | + </workflows> |
| 58 | + </formula> |
| 59 | + </formulation> |
| 60 | + <citations> |
| 61 | + <!-- spec-requirement that is not formalized in the XSD: |
| 62 | + <citation bom-ref="citation-1"> |
| 63 | + <pointers> |
| 64 | + <pointer>/components/0/name</pointer> |
| 65 | + </pointers> |
| 66 | + <timestamp>2025-05-01T14:00:00Z</timestamp> |
| 67 | + <note>Should have at least one of the following children 'attributedTo' or 'process'</note> |
| 68 | + </citation> |
| 69 | + --> |
| 70 | + <citation bom-ref="citation-2"> |
| 71 | + <pointers> |
| 72 | + <pointer>/components/0/licenses/0/license/id</pointer> |
| 73 | + </pointers> |
| 74 | + <timestamp>2025-05-01T14:05:00Z</timestamp> |
| 75 | + <attributedTo>person-1</attributedTo> |
| 76 | + <attributedTo>scan-tool-1</attributedTo> |
| 77 | + <note>Should have at max one 'attributedTo'</note> |
| 78 | + </citation> |
| 79 | + <citation bom-ref="citation-3"> |
| 80 | + <pointers> |
| 81 | + <pointer>/components/0/licenses/0/license/id</pointer> |
| 82 | + </pointers> |
| 83 | + <timestamp>2025-05-01T14:05:00Z</timestamp> |
| 84 | + <process>task-license-scan</process> |
| 85 | + <process>task-license-scan-2</process> |
| 86 | + <note>Should have at max one 'process'</note> |
| 87 | + </citation> |
| 88 | + <citation bom-ref="citation-4"> |
| 89 | + <pointers> |
| 90 | + <pointer>/components/0/licenses/0/license/id</pointer> |
| 91 | + </pointers> |
| 92 | + <expressions> |
| 93 | + <expression>//*[@bom-ref='component-1']/version</expression> |
| 94 | + </expressions> |
| 95 | + <timestamp>2025-05-01T14:05:00Z</timestamp> |
| 96 | + <process>task-license-scan</process> |
| 97 | + <note>Should not have both a pointer and expression.</note> |
| 98 | + </citation> |
| 99 | + </citations> |
| 100 | +</bom> |
0 commit comments