Skip to content

Commit

Permalink
Resolved playbook errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-metron committed Oct 30, 2024
1 parent e81c12c commit 9c0ec62
Show file tree
Hide file tree
Showing 5 changed files with 570 additions and 747 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ tasks:
- "10"
scriptarguments:
listData:
simple: ${CustomSlackBlock}
simple: ${slackBlock}
listName:
simple: 'slack block of Incident ID : ${incident.id}'
separatecontext: false
Expand Down Expand Up @@ -329,7 +329,7 @@ tasks:
- "10"
scriptarguments:
listData:
simple: ${CustomSlackBlock}
simple: ${slackBlock}
listName:
simple: 'slack block of Incident ID : ${incident.id}'
separatecontext: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import List, Dict, Any


def create_slack_block(incident: dict, rule_names_list: list, incidentLink:str) -> dict:
def create_slack_block(incident: dict, rule_names_list: list, incidentLink: str) -> dict:
"""
Creates a Slack block message structure for a DSPM incident.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from CommonServerPython import * # noqa: F401
from typing import Any
import traceback
import urllib.parse

CREATE_JIRA_TICKET = "Create a Jira ticket"
REMEDIATE_RISK = "Remediate a Risk"
Expand Down
2 changes: 0 additions & 2 deletions Packs/DSPM/Scripts/DSPMIncidentList/DSPMIncidentList.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
the incident from the list. Additionally, the script supports adding new incidents to the list if they do not already exist.
"""

from typing import Dict, Any
import traceback
from datetime import datetime

""" STANDALONE FUNCTION """
Expand Down
Loading

0 comments on commit 9c0ec62

Please sign in to comment.