Skip to content

Commit

Permalink
Merge pull request enterprise-contract#1046 from simonbaird/sbom-attr…
Browse files Browse the repository at this point in the history
…ibutes-typo-fix

Fix typo in rule data attributes key
  • Loading branch information
simonbaird authored Jun 20, 2024
2 parents 6ce2328 + d71d1b6 commit 87a932a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion policy/release/sbom_cyclonedx.rego
Original file line number Diff line number Diff line change
Expand Up @@ -233,4 +233,4 @@ _rule_data_errors contains msg if {

_rule_data_packages_key := "disallowed_packages"

_rule_data_attributes_key := "dissalowed_attributes"
_rule_data_attributes_key := "disallowed_attributes"
10 changes: 5 additions & 5 deletions policy/release/sbom_cyclonedx_test.rego
Original file line number Diff line number Diff line change
Expand Up @@ -276,25 +276,25 @@ test_rule_data_validation if {
},
{
"code": "sbom_cyclonedx.disallowed_packages_provided",
"msg": "Rule data dissalowed_attributes has unexpected format: 2: name is required",
"msg": "Rule data disallowed_attributes has unexpected format: 2: name is required",
},
{
"code": "sbom_cyclonedx.disallowed_packages_provided",
"msg": "Rule data dissalowed_attributes has unexpected format: 3: Additional property something is not allowed",
"msg": "Rule data disallowed_attributes has unexpected format: 3: Additional property something is not allowed",
},
{
"code": "sbom_cyclonedx.disallowed_packages_provided",
# regal ignore:line-length
"msg": "Rule data dissalowed_attributes has unexpected format: 4.name: Invalid type. Expected: string, given: integer",
"msg": "Rule data disallowed_attributes has unexpected format: 4.name: Invalid type. Expected: string, given: integer",
},
{
"code": "sbom_cyclonedx.disallowed_packages_provided",
# regal ignore:line-length
"msg": "Rule data dissalowed_attributes has unexpected format: 4.value: Invalid type. Expected: string, given: integer",
"msg": "Rule data disallowed_attributes has unexpected format: 4.value: Invalid type. Expected: string, given: integer",
},
{
"code": "sbom_cyclonedx.disallowed_packages_provided",
"msg": "Rule data dissalowed_attributes has unexpected format: (Root): array items[5,6] must be unique",
"msg": "Rule data disallowed_attributes has unexpected format: (Root): array items[5,6] must be unique",
},
}

Expand Down

0 comments on commit 87a932a

Please sign in to comment.