From 09f648b897aff13e2005b64d3e31288a7e16bae9 Mon Sep 17 00:00:00 2001 From: TOUFIKI Zakarya Date: Thu, 11 Jul 2024 15:25:09 +0200 Subject: [PATCH] Fix: Format files for CI --- .../IncidentTypes/Sekoia_XDR_Incident_Types.json | 2 +- .../layoutscontainer-Sekoia_XDR_Layout.json | 10 +++++----- .../{add_comment.py => SekoiaXDRAddComment.py} | 2 +- .../{add_comment.yml => SekoiaXDRAddComment.yml} | 12 ++++++------ .../SekoiaXDRChangeStatus.yml | 14 +++++++------- .../SekoiaXDRCloseAlert/SekoiaXDRCloseAlert.yml | 12 ++++++------ .../SekoiaXDRPrintAssets/SekoiaXDRPrintAssets.yml | 12 ++++++------ .../SekoiaXDRPrintCase/SekoiaXDRPrintCase.yml | 12 ++++++------ .../SekoiaXDRPrintComments.yml | 12 ++++++------ 9 files changed, 44 insertions(+), 44 deletions(-) rename Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/{add_comment.py => SekoiaXDRAddComment.py} (96%) rename Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/{add_comment.yml => SekoiaXDRAddComment.yml} (75%) diff --git a/Packs/SekoiaXDR/IncidentTypes/Sekoia_XDR_Incident_Types.json b/Packs/SekoiaXDR/IncidentTypes/Sekoia_XDR_Incident_Types.json index ab5d850515f6..cd01a8b97d4b 100644 --- a/Packs/SekoiaXDR/IncidentTypes/Sekoia_XDR_Incident_Types.json +++ b/Packs/SekoiaXDR/IncidentTypes/Sekoia_XDR_Incident_Types.json @@ -16,7 +16,7 @@ "readonly": false, "default": false, "autorun": true, - "closureScript": "0fa7a002-c00c-45c8-80ab-a7ebcfaa11f7", + "closureScript": "CloseSekoiaAlert", "disabled": false, "reputationCalc": 2, "onChangeRepAlg": 3, diff --git a/Packs/SekoiaXDR/Layouts/layoutscontainer-Sekoia_XDR_Layout.json b/Packs/SekoiaXDR/Layouts/layoutscontainer-Sekoia_XDR_Layout.json index 4049b3784d65..5a053f71ae5b 100644 --- a/Packs/SekoiaXDR/Layouts/layoutscontainer-Sekoia_XDR_Layout.json +++ b/Packs/SekoiaXDR/Layouts/layoutscontainer-Sekoia_XDR_Layout.json @@ -539,7 +539,7 @@ "minH": 1, "moved": false, "name": "Comments", - "query": "146130dc-9f3a-41e9-8a81-fbea9b933d0c", + "query": "SekoiaXDRPrintComments", "queryType": "script", "static": false, "type": "dynamic", @@ -624,7 +624,7 @@ "index": 6, "listId": "caseinfoid-xwqxiqdriy-caseinfoid-7ece0630-a95c-11ed-9145-25ddf42500b6", "name": "UPDATE STATUS", - "scriptId": "b4e28711-18ee-4ae4-8ccb-1c5f647b55f1", + "scriptId": "SekoiaXDRChangeStatus", "sectionItemType": "button", "startCol": 0 }, @@ -646,7 +646,7 @@ "id": "ef9d3e80-ce87-11ed-81c5-57f992291288", "index": 7, "name": "ADD COMMENT", - "scriptId": "c82c5535-89e8-48a6-829b-05929bd88f8e", + "scriptId": "SekoiaXDRAddComment", "sectionItemType": "button", "startCol": 0 } @@ -695,7 +695,7 @@ "minH": 1, "moved": false, "name": "Case Information", - "query": "37b383c0-16a2-4962-8f46-7245f8e187a0", + "query": "SekoiaXDRPrintCase", "queryType": "script", "static": false, "type": "dynamic", @@ -738,7 +738,7 @@ "minH": 1, "moved": false, "name": "Impacted assets", - "query": "13fe424a-a6dd-4b0a-8c60-7701d82a0ebc", + "query": "SekoiaXDRPrintAssets", "queryType": "script", "static": false, "type": "dynamic", diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/add_comment.py b/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/SekoiaXDRAddComment.py similarity index 96% rename from Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/add_comment.py rename to Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/SekoiaXDRAddComment.py index b3cb5ecda6d1..f9fa9ea9f511 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/add_comment.py +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/SekoiaXDRAddComment.py @@ -7,7 +7,7 @@ def main(): alert_short_id = demisto.args().get("short_id") comment = demisto.args().get("comment") - user = execute_command("getUsers", {"current": "true"})[0]["name"] + user = execute_command("getUsers", {"current": "true"})[0]["name"] # type: ignore execute_command( "sekoia-xdr-post-comment-alert", {"id": alert_short_id, "comment": comment, "author": user}, diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/add_comment.yml b/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/SekoiaXDRAddComment.yml similarity index 75% rename from Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/add_comment.yml rename to Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/SekoiaXDRAddComment.yml index 43d3a113050e..e2743c8206fc 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/add_comment.yml +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRAddComment/SekoiaXDRAddComment.yml @@ -1,8 +1,7 @@ commonfields: - id: c82c5535-89e8-48a6-829b-05929bd88f8e - version: 5 -vcShouldKeepItemLegacyProdMachine: false -name: script-SekoiaXDRAddComment + id: SekoiaXDRAddComment + version: -1 +name: SekoiaXDRAddComment script: '' type: python tags: @@ -18,9 +17,10 @@ args: description: The comment you want to send to an alert. scripttarget: 0 subtype: python3 -pswd: '' runonce: false dockerimage: demisto/python3:3.10.14.97374 runas: DBotWeakRole engineinfo: {} -mainengineinfo: {} +fromversion: 6.10.0 +tests: +- No tests (auto formatted) diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRChangeStatus/SekoiaXDRChangeStatus.yml b/Packs/SekoiaXDR/Scripts/SekoiaXDRChangeStatus/SekoiaXDRChangeStatus.yml index d9bb19207f09..561cf0edbf89 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRChangeStatus/SekoiaXDRChangeStatus.yml +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRChangeStatus/SekoiaXDRChangeStatus.yml @@ -1,8 +1,7 @@ commonfields: - id: b4e28711-18ee-4ae4-8ccb-1c5f647b55f1 - version: 4 -vcShouldKeepItemLegacyProdMachine: false -name: script-SekoiaXDRChangeStatus + id: SekoiaXDRChangeStatus + version: -1 +name: SekoiaXDRChangeStatus script: '' type: python tags: @@ -24,9 +23,10 @@ args: description: The comment to add to the alert on the status change. scripttarget: 0 subtype: python3 -pswd: '' runonce: false -dockerimage: demisto/python3:3.10.9.46032 +dockerimage: demisto/python3:3.10.14.97374 runas: DBotWeakRole engineinfo: {} -mainengineinfo: {} +fromversion: 6.10.0 +tests: +- No tests (auto formatted) diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRCloseAlert/SekoiaXDRCloseAlert.yml b/Packs/SekoiaXDR/Scripts/SekoiaXDRCloseAlert/SekoiaXDRCloseAlert.yml index 0979f8ee9ffa..3ae48a03b1e7 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRCloseAlert/SekoiaXDRCloseAlert.yml +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRCloseAlert/SekoiaXDRCloseAlert.yml @@ -1,8 +1,7 @@ commonfields: - id: 0fa7a002-c00c-45c8-80ab-a7ebcfaa11f7 - version: 10 -vcShouldKeepItemLegacyProdMachine: false -name: postScript-CloseSekoiaAlert + id: CloseSekoiaAlert + version: -1 +name: CloseSekoiaAlert script: '' type: python tags: @@ -11,9 +10,10 @@ comment: Post-processing script to close Sekoia Alert after the XSOAR incident i enabled: true scripttarget: 0 subtype: python3 -pswd: '' runonce: false dockerimage: demisto/python3:3.10.14.97374 runas: DBotWeakRole engineinfo: {} -mainengineinfo: {} +fromversion: 6.10.0 +tests: +- No tests (auto formatted) diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintAssets/SekoiaXDRPrintAssets.yml b/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintAssets/SekoiaXDRPrintAssets.yml index e84e52d02c40..0dbbefa56dee 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintAssets/SekoiaXDRPrintAssets.yml +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintAssets/SekoiaXDRPrintAssets.yml @@ -1,19 +1,19 @@ commonfields: - id: 13fe424a-a6dd-4b0a-8c60-7701d82a0ebc - version: 22 -vcShouldKeepItemLegacyProdMachine: false + id: SekoiaXDRPrintAssets + version: -1 name: SekoiaXDRPrintAssets script: '' type: python tags: - dynamic-section -comment: Print all assets by incident +comment: Print all assets by incident. enabled: true scripttarget: 0 subtype: python3 -pswd: '' runonce: false dockerimage: demisto/python3:3.10.14.97374 runas: DBotWeakRole engineinfo: {} -mainengineinfo: {} +fromversion: 6.10.0 +tests: +- No tests (auto formatted) diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintCase/SekoiaXDRPrintCase.yml b/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintCase/SekoiaXDRPrintCase.yml index 1db847ed5c34..c2879728c407 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintCase/SekoiaXDRPrintCase.yml +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintCase/SekoiaXDRPrintCase.yml @@ -1,8 +1,7 @@ commonfields: - id: 37b383c0-16a2-4962-8f46-7245f8e187a0 - version: 16 -vcShouldKeepItemLegacyProdMachine: false -name: script-SekoiaXDRPrintCase + id: SekoiaXDRPrintCase + version: -1 +name: SekoiaXDRPrintCase script: '' type: python tags: @@ -11,9 +10,10 @@ comment: Prints case details from the Sekoia alert. enabled: true scripttarget: 0 subtype: python3 -pswd: '' runonce: false dockerimage: demisto/python3:3.10.14.97374 runas: DBotWeakRole engineinfo: {} -mainengineinfo: {} +fromversion: 6.10.0 +tests: +- No tests (auto formatted) diff --git a/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintComments/SekoiaXDRPrintComments.yml b/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintComments/SekoiaXDRPrintComments.yml index 756fdf2af918..00af245649f7 100644 --- a/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintComments/SekoiaXDRPrintComments.yml +++ b/Packs/SekoiaXDR/Scripts/SekoiaXDRPrintComments/SekoiaXDRPrintComments.yml @@ -1,8 +1,7 @@ commonfields: - id: 146130dc-9f3a-41e9-8a81-fbea9b933d0c - version: 12 -vcShouldKeepItemLegacyProdMachine: false -name: script-SekoiaXDRPrintComments + id: SekoiaXDRPrintComments + version: -1 +name: SekoiaXDRPrintComments script: '' type: python tags: @@ -11,9 +10,10 @@ comment: Prints the comments fetched from the Sekoia alert in a table format. enabled: true scripttarget: 0 subtype: python3 -pswd: '' runonce: false dockerimage: demisto/python3:3.10.14.97374 runas: DBotWeakRole engineinfo: {} -mainengineinfo: {} +fromversion: 6.10.0 +tests: +- No tests (auto formatted)