Skip to content

Commit

Permalink
Use props instead of parts for maturity level
Browse files Browse the repository at this point in the history
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
  • Loading branch information
puerco committed Feb 19, 2025
1 parent 6767dce commit 18a86ee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/pkg/baseline/generator_oscal.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ func (g *Generator) ExportOSCAL(b *types.Baseline, w io.Writer) error {
Rel: "reference",
},
},
Parts: &[]oscal.Part{
Props: &[]oscal.Property{
{
ID: strings.TrimPrefix(criteria.ID, "OSPS-") + "_level",
Name: "maturity-level",
Prose: fmt.Sprintf("%d", criteria.MaturityLevel),
UUID: catalogUUID,
Value: fmt.Sprintf("%d", criteria.MaturityLevel),
},
},
Parts: &[]oscal.Part{
{
ID: strings.TrimPrefix(criteria.ID, "OSPS-") + "_details",
Name: "details",
Expand Down

0 comments on commit 18a86ee

Please sign in to comment.