Skip to content

Commit

Permalink
fix: add missing platform and type to spec (#7149)
Browse files Browse the repository at this point in the history
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
nikpivkin authored Jul 16, 2024
1 parent 7066f5e commit c8a7abd
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 c8a7abd

Please sign in to comment.