Skip to content

Commit

Permalink
fix: adds OSCAL validated component definition types to create-cd (#191)
Browse files Browse the repository at this point in the history
* fix: adds OSCAL validated component definition types to create-cd

Signed-off-by: Jennifer Power <[email protected]>

* fix: updates "service" line to fix missing comma

Signed-off-by: Jennifer Power <[email protected]>

---------

Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Mar 20, 2024
1 parent b9af089 commit 393fd85
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion actions/create-cd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ name: Example Workflow
| profile_name | Name of the Trestle profile to use for the component definition | None | True |
| component_definition_name | Name of the component definition to create | None | True |
| component_title | Name of the component to create | None | True |
| component_type | Type of the component to create | service | False |
| component_type | Type of the component to create. Values can be interconnection, software, hardware, service, policy, physical, process-procedure, plan, guidance, standard, or validation | service | False |
| component_description | Description of the component to create | None | True |
| filter_by_profile | Name of the profile in the workspace to filter controls by | None | False |
| github_token | GitHub token used to make authenticated API requests | None | False |
Expand Down
2 changes: 1 addition & 1 deletion actions/create-cd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ inputs:
description: Name of the component to create
required: true
component_type:
description: Type of the component to create
description: Type of the component to create. Values can be interconnection, software, hardware, service, policy, physical, process-procedure, plan, guidance, standard, or validation
required: false
default: "service"
component_description:
Expand Down
14 changes: 13 additions & 1 deletion trestlebot/entrypoints/create_cd.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,19 @@ def setup_create_cd_arguments(self) -> None:
"--component-definition-type",
required=False,
type=str,
choices=["service", "validation"],
choices=[
"interconnection",
"service",
"software",
"hardware",
"policy",
"physical",
"process-procedure",
"plan",
"guidance",
"standard",
"validation",
],
default="service",
help="Type of component definition",
)
Expand Down

0 comments on commit 393fd85

Please sign in to comment.