Skip to content

Commit

Permalink
Merge pull request #41 from rpiazza/main
Browse files Browse the repository at this point in the history
revert cve workflow, correctly implement dictionaries in jsonschema
  • Loading branch information
ejratl authored Oct 3, 2023
2 parents 073252f + 74bdda8 commit 4342afe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/cve-daily-update.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: cti-stix-commom-objects daily update
on:
schedule:
branches:
- main
- cron: "0 0 * * *"
# At the end of every day

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"attack-pattern--6ffad4be-bfe0-424f-abde-4d9a84a800ad",
"attack-pattern--91541e7e-b969-40c6-bbd8-1b5352ec2938"
],
"tags": [{"Anti-Analysis-Type": "Detection"}],
"tags": {"Anti-Analysis-Type": "Detection"},
"objective_refs": ["malware-objective--a6de0a96-50b6-441f-8e62-06eb6db84183"],
"detection_rules": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,9 @@
"$comment": "not required, but if used, there must be 1 item"
},
"tags": {
"type": "array",
"items": {
"$ref": "http://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/dictionary.json"
},
"$ref": "#/definitions/tags_dictionary",
"description": "The dictionary keys MUST be the tag names where the values are the value of the tag.",
"minItems": 1,
"$comment": "not required, but if used, there must be 1 item"
"$comment": "not required, but if used, there must be 1 item"
},
"objective_refs": {
"description": "The malware-objective objects associated with the behavior.",
Expand Down Expand Up @@ -218,6 +214,11 @@
"rule_type"
]
},
"tags_dictionary": {
"allOf": [{ "$ref": "http://raw.githubusercontent.com/oasis-open/cti-stix2-json-schemas/stix2.1/schemas/common/dictionary.json" }],
"description": "Specifies tags and values.",
"additionalProperties": true
},
"implementation-language-ov": {
"oneOf": [
{
Expand Down

0 comments on commit 4342afe

Please sign in to comment.