File: valid-formulation-1.7.xml

package info (click to toggle)
cyclonedx-python-lib 11.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,044 kB
  • sloc: xml: 20,462; python: 12,968; makefile: 21; sh: 16
file content (254 lines) | stat: -rw-r--r-- 11,757 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?xml version="1.0"?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.7"
     serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
     version="1"
>
    <components>
        <component type="library">
            <publisher>Acme Inc</publisher>
            <group>org.example</group>
            <name>mylibrary</name>
            <version>1.0.0</version>
        </component>
    </components>
    <formulation>
        <formula bom-ref="formula-1">
            <components>
                <component type="platform" bom-ref="component-1">
                    <name>Pipeline controller image</name>
                    <version>v0.47.0</version>
                </component>
            </components>
            <workflows>
                <workflow bom-ref="workflow-1">
                    <uid>8edb2b08-e2c7-11ed-b5ea-0242ac120002</uid>
                    <name>My workflow</name>
                    <description>Workflow description here</description>
                    <resourceReferences>
                        <resourceReference>
                            <ref>component-a</ref>
                        </resourceReference>
                    </resourceReferences>
                    <tasks>
                        <task bom-ref="task-1">
                            <uid>task-uid-1</uid>
                            <name>fetch-repository</name>
                            <description>Description here</description>
                            <resourceReferences>
                                <resourceReference>
                                    <ref>component-a</ref>
                                </resourceReference>
                            </resourceReferences>
                            <taskTypes>
                                <taskType>clone</taskType>
                                <taskType>build</taskType>
                            </taskTypes>
                            <trigger bom-ref="trigger-1">
                                <uid>trigger-1</uid>
                                <type>api</type>
                            </trigger>
                            <steps>
                                <step>
                                    <name>My step</name>
                                </step>
                            </steps>
                            <inputs>
                                <input>
                                    <resource>
                                        <ref>component-a</ref>
                                    </resource>
                                </input>
                            </inputs>
                            <outputs>
                                <output>
                                    <resource>
                                        <ref>component-b</ref>
                                    </resource>
                                </output>
                            </outputs>
                            <timeStart>2023-01-01T00:00:00+00:00</timeStart>
                            <timeEnd>2023-01-01T00:00:00+00:00</timeEnd>
                            <workspaces>
                                <workspace bom-ref="workspace-1">
                                    <uid>workspace-uid-1</uid>
                                    <name>workspace</name>
                                </workspace>
                            </workspaces>
                            <runtimeTopology>
                                <dependency ref="task-1">
                                    <dependency ref="task-2"/>
                                </dependency>
                            </runtimeTopology>
                        </task>
                    </tasks>
                    <taskDependencies>
                        <dependency ref="task-1">
                            <dependency ref="task-2"/>
                        </dependency>
                    </taskDependencies>
                    <taskTypes>
                        <taskType>clone</taskType>
                        <taskType>build</taskType>
                    </taskTypes>
                    <trigger bom-ref="trigger-2">
                        <uid>trigger-uid-2</uid>
                        <name>My trigger</name>
                        <description>Description here</description>
                        <resourceReferences>
                            <resourceReference>
                                <ref>component-a</ref>
                            </resourceReference>
                        </resourceReferences>
                        <type>api</type>
                        <event>
                            <uid>event-1</uid>
                            <description>Description here</description>
                            <timeReceived>2023-01-01T00:00:00+00:00</timeReceived>
                            <data>Foo/Bar</data>
                            <source>
                                <ref>component-g</ref>
                            </source>
                            <target>
                                <ref>component-h</ref>
                            </target>
                            <properties>
                                <property name="Foo">Bar</property>
                            </properties>
                        </event>
                        <conditions>
                            <condition>
                                <description>Description here</description>
                                <expression>1 == 1</expression>
                                <properties>
                                    <property name="Foo">Bar</property>
                                </properties>
                            </condition>
                        </conditions>
                        <timeActivated>2023-01-01T00:00:00+00:00</timeActivated>
                        <inputs>
                            <input>
                                <resource>
                                    <ref>component-10</ref>
                                </resource>
                                <source>
                                    <ref>component-11</ref>
                                </source>
                                <target>
                                    <ref>component-12</ref>
                                </target>
                            </input>
                        </inputs>
                        <outputs>
                            <output>
                                <resource>
                                    <ref>component-14</ref>
                                </resource>
                                <type>artifact</type>
                                <source>
                                    <ref>component-15</ref>
                                </source>
                                <target>
                                    <ref>component-16</ref>
                                </target>
                            </output>
                        </outputs>
                        <properties>
                            <property name="Foo">Bar</property>
                        </properties>
                    </trigger>
                    <steps>
                        <step>
                            <name>My step</name>
                            <description>Description here</description>
                            <commands>
                                <command>
                                    <executed>ls -las</executed>
                                    <properties>
                                        <property name="Foo">Bar</property>
                                    </properties>
                                </command>
                            </commands>
                            <properties>
                                <property name="Foo">Bar</property>
                            </properties>
                        </step>
                    </steps>
                    <inputs>
                        <input>
                            <environmentVars>
                                <environmentVar name="Foo">Bar</environmentVar>
                            </environmentVars>
                        </input>
                        <input>
                            <environmentVars>
                                <value>FooBar</value>
                            </environmentVars>
                        </input>
                        <input>
                            <environmentVars>
                                <environmentVar name="Foo">Bar</environmentVar>
                                <value>FooBar</value>
                            </environmentVars>
                        </input>
                    </inputs>
                    <outputs>
                        <output>
                            <environmentVars>
                                <environmentVar name="Foo">Bar</environmentVar>
                            </environmentVars>
                        </output>
                        <output>
                            <environmentVars>
                                <value>FooBar</value>
                            </environmentVars>
                        </output>
                        <output>
                            <environmentVars>
                                <environmentVar name="Foo">Bar</environmentVar>
                                <value>FooBar</value>
                            </environmentVars>
                        </output>
                    </outputs>
                    <timeStart>2023-01-01T00:00:00+00:00</timeStart>
                    <timeEnd>2023-01-01T00:00:10+00:00</timeEnd>
                    <workspaces>
                        <workspace bom-ref="workspace-2">
                            <uid>workspace-1</uid>
                            <name>My workspace</name>
                            <aliases>
                                <alias>default-workspace</alias>
                            </aliases>
                            <description>Description here</description>
                            <resourceReferences>
                                <resourceReference>
                                    <ref>component-t</ref>
                                </resourceReference>
                            </resourceReferences>
                            <accessMode>read-write</accessMode>
                            <mountPath>/tmp/workspace</mountPath>
                            <managedDataType>ConfigMap</managedDataType>
                            <volumeRequest>requestedVolumeClaim</volumeRequest>
                            <volume>
                                <uid>volume-1</uid>
                                <name>My volume</name>
                                <mode>filesystem</mode>
                                <path>/</path>
                                <sizeAllocated>10GB</sizeAllocated>
                                <persistent>true</persistent>
                                <remote>false</remote>
                            </volume>
                        </workspace>
                    </workspaces>
                    <runtimeTopology>
                        <dependency ref="component-s">
                            <dependency ref="component-r"/>
                        </dependency>
                    </runtimeTopology>
                    <properties>
                        <property name="Foo">Bar</property>
                    </properties>
                </workflow>
            </workflows>
        </formula>
    </formulation>
</bom>