Skip to content

Commit 710d2a3

Browse files
authored
Merge pull request #1039 from splunk/gha_fix
Gha fix
2 parents 88ec0d5 + 8ffb35f commit 710d2a3

File tree

2 files changed

+92
-4
lines changed

2 files changed

+92
-4
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
*.json filter=lfs diff=lfs merge=lfs -text
21
*.log filter=lfs diff=lfs merge=lfs -text
32
*.log text encoding=utf-8
3+
datasets/**/*.json filter=lfs diff=lfs merge=lfs -text

bin/dataset_schema.json

Lines changed: 91 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,91 @@
1-
version https://git-lfs.github.com/spec/v1
2-
oid sha256:97085370d23378475c243e900bfeb0b462b849ff3e2b4f38fec5547177c91a3b
3-
size 2274
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "Attack Data Dataset Schema",
4+
"description": "JSON Schema for validating YAML dataset files in the attack_data project",
5+
"type": "object",
6+
"required": [
7+
"author",
8+
"id",
9+
"date",
10+
"description",
11+
"environment",
12+
"datasets"
13+
],
14+
"properties": {
15+
"author": {
16+
"type": "string",
17+
"minLength": 1,
18+
"description": "Author(s) of the dataset"
19+
},
20+
"id": {
21+
"type": "string",
22+
"format": "uuid",
23+
"description": "UUID identifier for the dataset"
24+
},
25+
"date": {
26+
"type": "string",
27+
"description": "Date of the dataset"
28+
},
29+
"description": {
30+
"type": "string",
31+
"minLength": 1,
32+
"description": "Description of the dataset"
33+
},
34+
"environment": {
35+
"type": "string",
36+
"minLength": 1,
37+
"description": "Environment where the dataset was created"
38+
},
39+
"directory": {
40+
"type": "string",
41+
"minLength": 1,
42+
"description": "Directory name for the dataset"
43+
},
44+
"mitre_technique": {
45+
"type": "array",
46+
"items": {
47+
"type": "string",
48+
"pattern": "^T\\d{4}(\\.\\d{3})*$"
49+
},
50+
"description": "List of MITRE ATT&CK technique IDs (can be empty)"
51+
},
52+
"datasets": {
53+
"type": "array",
54+
"minItems": 1,
55+
"items": {
56+
"type": "object",
57+
"required": [
58+
"name",
59+
"path",
60+
"source",
61+
"sourcetype"
62+
],
63+
"properties": {
64+
"name": {
65+
"type": "string",
66+
"minLength": 1,
67+
"description": "Name of the dataset"
68+
},
69+
"path": {
70+
"type": "string",
71+
"minLength": 1,
72+
"description": "Path to the dataset file"
73+
},
74+
"source": {
75+
"type": "string",
76+
"minLength": 1,
77+
"description": "Source of the data"
78+
},
79+
"sourcetype": {
80+
"type": "string",
81+
"minLength": 1,
82+
"description": "Type of the data source"
83+
}
84+
},
85+
"additionalProperties": false
86+
},
87+
"description": "List of datasets (must contain at least one dataset)"
88+
}
89+
},
90+
"additionalProperties": false
91+
}

0 commit comments

Comments
 (0)