You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add select CycloneDX v1.7 testcases to Go test (#142)
* Add select CycloneDX v1.7 testcases to Go test
Signed-off-by: Matt Rutkowski <[email protected]>
* Add select CycloneDX v1.7 testcases to Go test
Signed-off-by: Matt Rutkowski <[email protected]>
* Add select CycloneDX v1.7 testcases to Go test
Signed-off-by: Matt Rutkowski <[email protected]>
---------
Signed-off-by: Matt Rutkowski <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1606,13 +1606,13 @@ This example effectively extracts the first-order package manifest from the SBOM
1606
1606
In this example, only the `--from` clause is needed to select an object. The `--select` clause is omitted which is equivalent to using the "select all" wildcard character `*` which returns all fields and values from the `component` object.
In another example, the list is filtered by the `usage-policy` where the value is `needs-review`:
1991
1991
1992
1992
```bash
1993
-
./sbom-utility license list -i test/cyclonedx/cdx-1-3-license-list.json --summary --where usage-policy=needs-review -q
1993
+
./sbom-utility license list -i test/cyclonedx/1.3/cdx-1-3-license-list.json --summary --where usage-policy=needs-review -q
1994
1994
```
1995
1995
1996
1996
```bash
@@ -2141,7 +2141,7 @@ Currently, all `resource list` command results are sorted by resource `type` the
2141
2141
#### Example: resource list
2142
2142
2143
2143
```bash
2144
-
./sbom-utility resource list -i test/cyclonedx/cdx-1-3-resource-list.json -q
2144
+
./sbom-utility resource list -i test/cyclonedx/1.3/cdx-1-3-resource-list.json -q
2145
2145
```
2146
2146
2147
2147
```bash
@@ -2167,7 +2167,7 @@ service:example.com/myservices/foo service Foo
2167
2167
This example uses the `type` flag to specific `service`. The other valid type is `component`. Future versions of CycloneDX schema will include more resource types such as "ml" (machine learning) or "tool".
2168
2168
2169
2169
```bash
2170
-
./sbom-utility resource list -i test/cyclonedx/cdx-1-3-resource-list.json --type service -q
2170
+
./sbom-utility resource list -i test/cyclonedx/1.3/cdx-1-3-resource-list.json --type service -q
2171
2171
```
2172
2172
2173
2173
```bash
@@ -2180,15 +2180,15 @@ service Foo Foo service service:example.com/myservi
2180
2180
**Note** The results would be equivalent to using the `--where` filter:
2181
2181
2182
2182
```bash
2183
-
./sbom-utility resource list -i test/cyclonedx/cdx-1-3-resource-list.json --where "resource-type=service" -q
2183
+
./sbom-utility resource list -i test/cyclonedx/1.3/cdx-1-3-resource-list.json --where "resource-type=service" -q
2184
2184
```
2185
2185
2186
2186
##### Example: list with `name` regex match
2187
2187
2188
2188
This example uses the `where` filter on the `name` field. In this case we supply an exact "startswith" regex. for the `name` filter.
2189
2189
2190
2190
```bash
2191
-
./sbom-utility resource list -i test/cyclonedx/cdx-1-3-resource-list.json --where "name=Library A" -q
2191
+
./sbom-utility resource list -i test/cyclonedx/1.3/cdx-1-3-resource-list.json --where "name=Library A" -q
2192
2192
```
2193
2193
2194
2194
```bash
@@ -2532,7 +2532,7 @@ If you wish to build binaries for all supported combinations of `GOOS` and `GOAR
2532
2532
Developers can run using the current source code in their local branch using `go run main.go`. For example:
2533
2533
2534
2534
```bash
2535
-
go run main.go validate -i test/cyclonedx/cdx-1-4-mature-example-1.json
2535
+
go run main.go validate -i test/cyclonedx/1.4/cdx-1-4-mature-example-1.json
2536
2536
```
2537
2537
2538
2538
### Debugging
@@ -2553,7 +2553,7 @@ In order to see global variables while debugging a specific configuration, you c
0 commit comments