Skip to content

Commit b83767d

Browse files
Change step signature to make externalreferences a list of references (#113)
Co-authored-by: kroskinskiis <[email protected]>
1 parent 6f8c791 commit b83767d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/content/en/docs/soarca-extensions/fin-protocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The message is used to register a fin to SOARCA. It has the following payload.
114114
|type |action |string |Action type
115115
|name |name |string |message id
116116
|description |description |string |Description of the step
117-
|external_references|<references> |[external reference](https://docs.oasis-open.org/cacao/security-playbooks/v2.0/cs01/security-playbooks-v2.0-cs01.html#_Toc152256542) |References to external recourses to further enhance the step also see CACAO V2 10.9.
117+
|external_references|<references> |list of [external reference](https://docs.oasis-open.org/cacao/security-playbooks/v2.0/cs01/security-playbooks-v2.0-cs01.html#_Toc152256542) |References to external recourses to further enhance the step also see CACAO V2 10.9.
118118
|command |command |string |Command to execute
119119
|target |UUID |string |Target UUID cto execute command against
120120

models/fin/fin.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ type Capability struct {
5454

5555
// Step structure as example to the executor
5656
type Step struct {
57-
Type string `json:"type"`
58-
Name string `json:"name"`
59-
Description string `json:"description"`
60-
ExternalReferences cacao.ExternalReferences `json:"external_references"`
61-
Command string `json:"command"`
62-
Target string `json:"target"`
57+
Type string `json:"type"`
58+
Name string `json:"name"`
59+
Description string `json:"description"`
60+
ExternalReferences []cacao.ExternalReferences `json:"external_references"`
61+
Command string `json:"command"`
62+
Target string `json:"target"`
6363
}
6464

6565
// Unregister command structure

0 commit comments

Comments
 (0)