splunk-soar-sdk 2.3.2__py3-none-any.whl → 2.3.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- soar_sdk/app_templates/basic_app/.pre-commit-config.yaml +79 -6
- soar_sdk/cli/init/cli.py +4 -0
- soar_sdk/params.py +6 -5
- {splunk_soar_sdk-2.3.2.dist-info → splunk_soar_sdk-2.3.4.dist-info}/METADATA +1 -1
- {splunk_soar_sdk-2.3.2.dist-info → splunk_soar_sdk-2.3.4.dist-info}/RECORD +8 -8
- {splunk_soar_sdk-2.3.2.dist-info → splunk_soar_sdk-2.3.4.dist-info}/WHEEL +0 -0
- {splunk_soar_sdk-2.3.2.dist-info → splunk_soar_sdk-2.3.4.dist-info}/entry_points.txt +0 -0
- {splunk_soar_sdk-2.3.2.dist-info → splunk_soar_sdk-2.3.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,11 +1,84 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
|
|
4
|
+
# By default, run each hook only in the standard pre-commit stage
|
|
5
|
+
default_install_hook_types: [pre-commit, commit-msg]
|
|
6
|
+
default_stages: [pre-commit]
|
|
7
|
+
|
|
8
|
+
# This is a template for connector pre-commit hooks
|
|
1
9
|
repos:
|
|
2
|
-
-
|
|
3
|
-
rev:
|
|
10
|
+
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
11
|
+
rev: v4.1.0
|
|
4
12
|
hooks:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
13
|
+
- id: conventional-pre-commit
|
|
14
|
+
stages: [commit-msg]
|
|
15
|
+
args: [--verbose]
|
|
16
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
17
|
+
rev: v5.0.0
|
|
18
|
+
hooks:
|
|
19
|
+
- id: check-merge-conflict
|
|
20
|
+
- id: end-of-file-fixer
|
|
21
|
+
exclude: ^NOTICE$
|
|
22
|
+
exclude_types: [ markdown ]
|
|
23
|
+
- id: trailing-whitespace
|
|
24
|
+
exclude: ^NOTICE$
|
|
25
|
+
exclude_types: [ markdown ]
|
|
26
|
+
- id: requirements-txt-fixer
|
|
27
|
+
- id: check-json
|
|
28
|
+
- id: check-yaml
|
|
29
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
30
|
+
rev: v0.11.7
|
|
31
|
+
hooks:
|
|
32
|
+
- id: ruff
|
|
33
|
+
args: [ "--fix", "--unsafe-fixes"] # Allow unsafe fixes (ruff pretty strict about what it can fix)
|
|
34
|
+
- id: ruff-format
|
|
35
|
+
- repo: https://github.com/djlint/djLint
|
|
36
|
+
rev: v1.36.4
|
|
37
|
+
hooks:
|
|
38
|
+
- id: djlint-reformat-django
|
|
39
|
+
- id: djlint-django
|
|
40
|
+
- repo: https://github.com/phantomcyber/soar-app-linter
|
|
41
|
+
rev: 0.1.0
|
|
42
|
+
hooks:
|
|
43
|
+
- id: soar-app-linter
|
|
44
|
+
args: ["--single-repo", "--message-level", "error"]
|
|
45
|
+
- repo: https://github.com/hukkin/mdformat
|
|
46
|
+
rev: 0.7.22
|
|
47
|
+
hooks:
|
|
48
|
+
- id: mdformat
|
|
49
|
+
exclude: "release_notes/.*"
|
|
50
|
+
- repo: https://github.com/returntocorp/semgrep
|
|
51
|
+
rev: v1.89.0
|
|
52
|
+
hooks:
|
|
53
|
+
- id: semgrep
|
|
54
|
+
- repo: https://github.com/Yelp/detect-secrets
|
|
8
55
|
rev: v1.5.0
|
|
9
56
|
hooks:
|
|
10
|
-
|
|
57
|
+
- id: detect-secrets
|
|
11
58
|
args: ['--no-verify']
|
|
59
|
+
exclude_types: [json]
|
|
60
|
+
exclude: "README.md"
|
|
61
|
+
# Central hooks
|
|
62
|
+
- repo: https://github.com/phantomcyber/dev-cicd-tools
|
|
63
|
+
rev: v2.1.0
|
|
64
|
+
hooks:
|
|
65
|
+
- id: build-docs
|
|
66
|
+
language: python
|
|
67
|
+
additional_dependencies: ["local-hooks"]
|
|
68
|
+
args: ['.']
|
|
69
|
+
- id: copyright
|
|
70
|
+
language: python
|
|
71
|
+
additional_dependencies: ["local-hooks"]
|
|
72
|
+
args: ['.']
|
|
73
|
+
- id: notice-file
|
|
74
|
+
language: python
|
|
75
|
+
additional_dependencies: ["local-hooks"]
|
|
76
|
+
args: ['.']
|
|
77
|
+
- id: release-notes
|
|
78
|
+
language: python
|
|
79
|
+
additional_dependencies: ["local-hooks"]
|
|
80
|
+
args: ['.']
|
|
81
|
+
- id: static-tests
|
|
82
|
+
language: python
|
|
83
|
+
additional_dependencies: ["local-hooks"]
|
|
84
|
+
args: ['.']
|
soar_sdk/cli/init/cli.py
CHANGED
|
@@ -190,6 +190,10 @@ def init_sdk_app(
|
|
|
190
190
|
app_text = ast.unparse(app_module)
|
|
191
191
|
(app_dir / "src/app.py").write_text(app_text)
|
|
192
192
|
|
|
193
|
+
release_notes_dir = app_dir / "release_notes"
|
|
194
|
+
release_notes_dir.mkdir(exist_ok=True)
|
|
195
|
+
(release_notes_dir / "unreleased.md").write_text("**Unreleased**\n")
|
|
196
|
+
|
|
193
197
|
uv_path = shutil.which("uv")
|
|
194
198
|
if not uv_path:
|
|
195
199
|
rprint("[red]uv command not found. Please install uv to continue.[/]")
|
soar_sdk/params.py
CHANGED
|
@@ -218,26 +218,27 @@ class MakeRequestParams(Params):
|
|
|
218
218
|
)
|
|
219
219
|
|
|
220
220
|
headers: str = Param(
|
|
221
|
-
description="The headers to send with the request (JSON object).",
|
|
221
|
+
description="The headers to send with the request (JSON object). An example is {'Content-Type': 'application/json'}",
|
|
222
222
|
required=False,
|
|
223
223
|
)
|
|
224
224
|
|
|
225
225
|
query_parameters: str = Param(
|
|
226
|
-
description="
|
|
226
|
+
description="Parameters to append to the URL (JSON object or query string). An example is ?key=value&key2=value2",
|
|
227
227
|
required=False,
|
|
228
228
|
)
|
|
229
229
|
|
|
230
230
|
body: str = Param(
|
|
231
|
-
description="The body to send with the request (JSON object).",
|
|
231
|
+
description="The body to send with the request (JSON object). An example is {'key': 'value', 'key2': 'value2'}",
|
|
232
232
|
required=False,
|
|
233
233
|
)
|
|
234
234
|
|
|
235
235
|
timeout: int = Param(
|
|
236
|
-
description="The timeout for the request.",
|
|
236
|
+
description="The timeout for the request in seconds.",
|
|
237
237
|
required=False,
|
|
238
238
|
)
|
|
239
239
|
|
|
240
240
|
verify_ssl: bool = Param(
|
|
241
|
-
description="Whether to verify the SSL certificate.",
|
|
241
|
+
description="Whether to verify the SSL certificate. Default is False.",
|
|
242
242
|
required=False,
|
|
243
|
+
default=False,
|
|
243
244
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: splunk-soar-sdk
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.4
|
|
4
4
|
Summary: The official framework for developing and testing Splunk SOAR Apps
|
|
5
5
|
Project-URL: Homepage, https://github.com/phantomcyber/splunk-soar-sdk
|
|
6
6
|
Project-URL: Documentation, https://github.com/phantomcyber/splunk-soar-sdk
|
|
@@ -13,7 +13,7 @@ soar_sdk/crypto.py,sha256=qiBMHUQqgn5lPI1DbujSj700s89FuLJrkQgCO9_eBn4,392
|
|
|
13
13
|
soar_sdk/exceptions.py,sha256=CxJ_Q6N1jlknO_3ItDQNhHEw2pNWZr3sMLqutYmr5HA,1863
|
|
14
14
|
soar_sdk/input_spec.py,sha256=BAa36l8IKDvM8SVMjgZ1XcnWZ2F7O052n2415tLeKK8,4690
|
|
15
15
|
soar_sdk/logging.py,sha256=lSz8PA6hOCw2MHGE0ZSKbw-FzSr1WdbfQ7BHnXBUUY0,11440
|
|
16
|
-
soar_sdk/params.py,sha256=
|
|
16
|
+
soar_sdk/params.py,sha256=UXfyCAO3bqMX7n_2Cmu-ObmilBkGg0kX1Jk9KCjjrtY,8940
|
|
17
17
|
soar_sdk/paths.py,sha256=XhpanQCAiTXaulRx440oKu36mnll7P05TethHXgMpgQ,239
|
|
18
18
|
soar_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
soar_sdk/types.py,sha256=uMFnNOHpmCLrbAhQOgmXjScXiGE67sM8ySN04MhkC3U,602
|
|
@@ -23,7 +23,7 @@ soar_sdk/apis/container.py,sha256=eLV3S1zvwfMerNXM78gsSqiMDv731oVwBcdfQJdxSn4,87
|
|
|
23
23
|
soar_sdk/apis/utils.py,sha256=lyqVGVRzRfCmel0k678CSD4tVASXkVZGm4Qzee2KbyM,982
|
|
24
24
|
soar_sdk/apis/vault.py,sha256=nOIi7oqrBl59AfI1i0zWxfj-TO24x02_RYLSgT0rXNY,8565
|
|
25
25
|
soar_sdk/app_templates/basic_app/.gitignore,sha256=CwSrCn9YISq7Q2EJVc7o1kdkXqysZngGJfz-4pOMMdY,3517
|
|
26
|
-
soar_sdk/app_templates/basic_app/.pre-commit-config.yaml,sha256=
|
|
26
|
+
soar_sdk/app_templates/basic_app/.pre-commit-config.yaml,sha256=0sFjnoC-scXm80ZgA4TPyc6BN1VaF4eY9p8qwEchB38,2526
|
|
27
27
|
soar_sdk/app_templates/basic_app/logo.svg,sha256=_JTop6spn5oPWPk-w6Tzumx_FTSBanOYra3vE2FO-6c,285
|
|
28
28
|
soar_sdk/app_templates/basic_app/logo_dark.svg,sha256=PTxIs_1CKK9ZY3v-K1QoGwaUng9ZUL2MhUeO2jeHu_0,291
|
|
29
29
|
soar_sdk/app_templates/basic_app/uv.lock,sha256=AfgaIBg88KH-0iyXpCXacXAwHYKm0c-on2gWXjV9L-Y,80216
|
|
@@ -33,7 +33,7 @@ soar_sdk/cli/cli.py,sha256=62n6b41bjXILtkqLTpeID8JyDYMbkfXNV1LCo52YUsA,926
|
|
|
33
33
|
soar_sdk/cli/path_utils.py,sha256=rFJDAe-sTC_6KgSiidlD3JcpygFmyHAEsn1j_6eWpIc,1263
|
|
34
34
|
soar_sdk/cli/utils.py,sha256=GNZLFAMH_BKQo2-D5GvweWxeuR7DfR8eMZS4-sJUggU,1441
|
|
35
35
|
soar_sdk/cli/init/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
-
soar_sdk/cli/init/cli.py,sha256=
|
|
36
|
+
soar_sdk/cli/init/cli.py,sha256=FU9N0pMGUoNA0qHnA3m63vfytmXPHpHxHep-D-T16-c,14674
|
|
37
37
|
soar_sdk/cli/manifests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
38
|
soar_sdk/cli/manifests/cli.py,sha256=cly5xVdj4bBIdZVMQPIWTXRgUfd1ON3qKO-76Fwql18,524
|
|
39
39
|
soar_sdk/cli/manifests/deserializers.py,sha256=xFTRzWEszKbkO-yNUvGnQfjdJryXpB2FalkxaDmzm3Y,16589
|
|
@@ -96,8 +96,8 @@ soar_sdk/views/components/pie_chart.py,sha256=LVTeHVJN6nf2vjUs9y7PDBhS0U1fKW750l
|
|
|
96
96
|
soar_sdk/webhooks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
97
97
|
soar_sdk/webhooks/models.py,sha256=-rjuFA9cRX5zTLp7cHSHVTkt5eVJD6BdESGbj_qkyHI,4540
|
|
98
98
|
soar_sdk/webhooks/routing.py,sha256=BKbURSrBPdOTS5UFL-mHzFEr-Fj04mJMx9KeiPrZ2VQ,6872
|
|
99
|
-
splunk_soar_sdk-2.3.
|
|
100
|
-
splunk_soar_sdk-2.3.
|
|
101
|
-
splunk_soar_sdk-2.3.
|
|
102
|
-
splunk_soar_sdk-2.3.
|
|
103
|
-
splunk_soar_sdk-2.3.
|
|
99
|
+
splunk_soar_sdk-2.3.4.dist-info/METADATA,sha256=U0BNBr8ZFSOR7hfUx2qQP-Wn5p4zcabzTo8U0xowIpY,7361
|
|
100
|
+
splunk_soar_sdk-2.3.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
101
|
+
splunk_soar_sdk-2.3.4.dist-info/entry_points.txt,sha256=CgBjo2ZWpYNkt9TgvToL26h2Tg1yt8FbvYTb5NVgNuc,51
|
|
102
|
+
splunk_soar_sdk-2.3.4.dist-info/licenses/LICENSE,sha256=gNCGrGhrSQb1PUzBOByVUN1tvaliwLZfna-QU2r2hQ8,11345
|
|
103
|
+
splunk_soar_sdk-2.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|