Skip to content

Commit 29c5713

Browse files
committed
fix: Correct struct field name and YAML indentation issues
Signed-off-by: Anivar A Aravind <[email protected]>
1 parent b0ce34b commit 29c5713

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

v1/ast/builtins.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ var PurlIsValid = &Builtin{
20752075
types.Named("result", types.B).Description("`true` if `purl` is a valid Package URL; `false` otherwise"),
20762076
),
20772077
Categories: encoding,
2078-
canSkipBctx: true,
2078+
CanSkipBctx: true,
20792079
}
20802080

20812081
var PurlParse = &Builtin{
@@ -2088,7 +2088,7 @@ var PurlParse = &Builtin{
20882088
types.Named("result", types.NewObject(nil, types.NewDynamicProperty(types.S, types.A))).Description("object containing PURL components: type, namespace, name, version, qualifiers, subpath"),
20892089
),
20902090
Categories: encoding,
2091-
canSkipBctx: true,
2091+
CanSkipBctx: true,
20922092
}
20932093

20942094
var HexEncode = &Builtin{

v1/test/cases/testdata/v1/purlbuiltins/test-sbom-examples.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cases:
3333
- purl: "pkg:npm/[email protected]"
3434
want_result:
3535
- x:
36-
- "Vulnerable package detected: pkg:maven/org.apache.logging.log4j/[email protected]"
36+
- "Vulnerable package detected: pkg:maven/org.apache.logging.log4j/[email protected]"
3737

3838
# Test non-vulnerable package passes
3939
- note: purlbuiltins/sbom_safe_package
@@ -103,7 +103,7 @@ cases:
103103
- purl: "pkg:docker/nginx@latest?repository_url=docker.io"
104104
want_result:
105105
- x:
106-
- "Unapproved registry: unauthorized.registry.io"
106+
- "Unapproved registry: unauthorized.registry.io"
107107

108108
# License compliance check
109109
- note: purlbuiltins/license_compliance_violation
@@ -137,7 +137,7 @@ cases:
137137
- id: "MIT"
138138
want_result:
139139
- x:
140-
- "Package npm/[email protected] uses prohibited license GPL-3.0"
140+
- "Package npm/[email protected] uses prohibited license GPL-3.0"
141141

142142
# Supply chain verification - missing checksums
143143
- note: purlbuiltins/supply_chain_missing_verification
@@ -166,7 +166,7 @@ cases:
166166
content: "abcd1234"
167167
want_result:
168168
- x:
169-
- "Package lacks verification: pkg:npm/[email protected]"
169+
- "Package lacks verification: pkg:npm/[email protected]"
170170

171171
# High risk packages without namespace
172172
- note: purlbuiltins/high_risk_packages
@@ -191,9 +191,9 @@ cases:
191191
- purl: "pkg:pypi/[email protected]" # No namespace
192192
want_result:
193193
- x:
194-
- type: "npm"
195-
name: "lodash"
196-
version: "4.17.21"
197-
- type: "pypi"
198-
name: "requests"
199-
version: "2.28.0"
194+
- type: "npm"
195+
name: "lodash"
196+
version: "4.17.21"
197+
- type: "pypi"
198+
name: "requests"
199+
version: "2.28.0"

0 commit comments

Comments
 (0)