ComplianceAsCode / ComplianceAsCode/content
The ssg.yaml.open_and_expand function does not recognize {"x": true} as a boolean value
Open
enhancement
triaged
- Dominant language
- Shell
- Stars
- 2.8k
- Forks
- 828
- Avg merge
- 3d 8m
- Merged PRs (30d)
- 80
Description
#### Share the context
Follow-up on https://github.com/ComplianceAsCode/content/pull/9700#discussion_r1004348387.
#### Description of problem:
Because of `ssg.yaml.open_and_expand` function behavior we sometimes have to resort to ugly functions in [our code](https://github.com/ComplianceAsCode/content/blob/40b629d90d5642d9c1d1ef135e88cb2025c1a8cf/ssg/build_cpe.py#L177).
The behavior comes across as sub-optimal. It there a reason for it and could it be improved?
#### Proposed change:
The `yaml.load` function does the right thing. Can we change `ssg.yaml.open_and_expand` to act in the same manner?
Contributor guide
Assessment
This issue has not been assessed yet.