Skip to content

Commit

Permalink
fix: add missing platform and type to spec
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <[email protected]>
  • Loading branch information
nikpivkin committed Jul 11, 2024
1 parent f27c236 commit 03ad0c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/iac/types/compliance.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ type Spec struct {
Title string `yaml:"title"`
Description string `yaml:"description"`
Version string `yaml:"version"`
RelatedResources []string `yaml:"relatedResources"`
Platform string `yaml:"platform"`
Type string `yaml:"type"`
RelatedResources []string `yaml:"relatedResources,omitempty"`
Controls []Control `yaml:"controls"`
}

Expand All @@ -30,8 +32,8 @@ type Control struct {
ID string `yaml:"id"`
Name string `yaml:"name"`
Description string `yaml:"description,omitempty"`
Checks []SpecCheck `yaml:"checks"`
Commands []Command `yaml:"commands"`
Checks []SpecCheck `yaml:"checks,omitempty"`
Commands []Command `yaml:"commands,omitempty"`
Severity Severity `yaml:"severity"`
DefaultStatus ControlStatus `yaml:"defaultStatus,omitempty"`
}

0 comments on commit 03ad0c5

Please sign in to comment.