From 3b2eba8e5a1b2cdbc6ee45dcfca930b7f0eaca25 Mon Sep 17 00:00:00 2001 From: Daryl Lim <5508348+daryllimyt@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:40:21 +0800 Subject: [PATCH] chore: Run pre-commit on all files --- env.sh | 2 +- .../templates/checkpoint/update_xdr_incident.yml | 2 +- .../templates/crowdstrike/get_detections.yml | 2 +- .../templates/crowdstrike/get_incident_summaries.yml | 2 +- .../tracecat_registry/templates/crowdstrike/get_incidents.yml | 4 ++-- .../templates/crowdstrike/list_incidents.yml | 2 +- .../tracecat_registry/templates/sentinel_one/list_threats.yml | 2 +- .../templates/sentinel_one/update_threat_status.yml | 2 +- .../templates/wazuh/get_results_rootcheck.yml | 1 - temporal/config/tracecat-sql.yaml | 2 +- 10 files changed, 10 insertions(+), 11 deletions(-) diff --git a/env.sh b/env.sh index 2cfa473e9..9b54bda47 100755 --- a/env.sh +++ b/env.sh @@ -35,7 +35,7 @@ dotenv_replace() { echo -e "${YELLOW}Creating .env...${NC}" -# Check that docker exists and is running +# Check that docker exists and is running if ! docker ps &> /dev/null then echo -e "${RED}Docker could not be found. Please check if installed and running.${NC}" diff --git a/registry/tracecat_registry/templates/checkpoint/update_xdr_incident.yml b/registry/tracecat_registry/templates/checkpoint/update_xdr_incident.yml index d4b9ed3db..e8f24f33e 100644 --- a/registry/tracecat_registry/templates/checkpoint/update_xdr_incident.yml +++ b/registry/tracecat_registry/templates/checkpoint/update_xdr_incident.yml @@ -10,7 +10,7 @@ definition: type: int description: 'Must be incident id or display id' default: null - status: + status: type: str description: 'Must be one of the following values: "new", "in progress", "close - handled", "close - prevented", "close - false positive", "close - known activity"' default: null diff --git a/registry/tracecat_registry/templates/crowdstrike/get_detections.yml b/registry/tracecat_registry/templates/crowdstrike/get_detections.yml index 7344c3fae..8df8a053c 100644 --- a/registry/tracecat_registry/templates/crowdstrike/get_detections.yml +++ b/registry/tracecat_registry/templates/crowdstrike/get_detections.yml @@ -41,4 +41,4 @@ definition: ids: ${{ steps.query_detects.result.body.resources }} member_cid: ${{ inputs.member_cid }} operation_id: GetDetectSummaries - returns: ${{ steps.get_summaries.result }} \ No newline at end of file + returns: ${{ steps.get_summaries.result }} diff --git a/registry/tracecat_registry/templates/crowdstrike/get_incident_summaries.yml b/registry/tracecat_registry/templates/crowdstrike/get_incident_summaries.yml index 64c2f2151..72034c57c 100644 --- a/registry/tracecat_registry/templates/crowdstrike/get_incident_summaries.yml +++ b/registry/tracecat_registry/templates/crowdstrike/get_incident_summaries.yml @@ -19,4 +19,4 @@ definition: params: body: ids: ${{ inputs.incident_ids }} - returns: ${{ steps.get_summaries.result }} \ No newline at end of file + returns: ${{ steps.get_summaries.result }} diff --git a/registry/tracecat_registry/templates/crowdstrike/get_incidents.yml b/registry/tracecat_registry/templates/crowdstrike/get_incidents.yml index fe1e84c93..ce1d42efc 100644 --- a/registry/tracecat_registry/templates/crowdstrike/get_incidents.yml +++ b/registry/tracecat_registry/templates/crowdstrike/get_incidents.yml @@ -4,7 +4,7 @@ definition: namespace: integrations.crowdstrike title: Get CrowdStrike CrowdScore Incidents description: | - Query for CrowdStrike CrowdScore Incident IDs, and get all details for these IDs. + Query for CrowdStrike CrowdScore Incident IDs, and get all details for these IDs. Uses the following two falcony operations - 1. https://falconpy.io/Service-Collections/Incidents.html#queryincidents 2. https://falconpy.io/Service-Collections/Incidents.html#getincidents display_group: CrowdStrike @@ -39,4 +39,4 @@ definition: params: body: ids: ${{ steps.query_incidents.result.body.resources }} - returns: ${{ steps.get_summaries.result }} \ No newline at end of file + returns: ${{ steps.get_summaries.result }} diff --git a/registry/tracecat_registry/templates/crowdstrike/list_incidents.yml b/registry/tracecat_registry/templates/crowdstrike/list_incidents.yml index 3cb69120d..a9c8d186c 100644 --- a/registry/tracecat_registry/templates/crowdstrike/list_incidents.yml +++ b/registry/tracecat_registry/templates/crowdstrike/list_incidents.yml @@ -31,4 +31,4 @@ definition: params: filter: ${{ inputs.filter || "state:'open'" }} limit: ${{ inputs.limit }} - returns: ${{ steps.query_incidents.result }} \ No newline at end of file + returns: ${{ steps.query_incidents.result }} diff --git a/registry/tracecat_registry/templates/sentinel_one/list_threats.yml b/registry/tracecat_registry/templates/sentinel_one/list_threats.yml index 00b64e86a..645b4e91c 100644 --- a/registry/tracecat_registry/templates/sentinel_one/list_threats.yml +++ b/registry/tracecat_registry/templates/sentinel_one/list_threats.yml @@ -30,4 +30,4 @@ definition: created_at__gte: ${{ inputs.start_time }} created_at__lte: ${{ inputs.end_time }} limit: ${{ inputs.limit }} - returns: ${{ steps.query_threats.result }} \ No newline at end of file + returns: ${{ steps.query_threats.result }} diff --git a/registry/tracecat_registry/templates/sentinel_one/update_threat_status.yml b/registry/tracecat_registry/templates/sentinel_one/update_threat_status.yml index 35d19f418..890352967 100644 --- a/registry/tracecat_registry/templates/sentinel_one/update_threat_status.yml +++ b/registry/tracecat_registry/templates/sentinel_one/update_threat_status.yml @@ -32,4 +32,4 @@ definition: analystVerdict: ${{ inputs.verdict }} filter: ids: ${{ inputs.threat_ids }} - returns: ${{ steps.update_threat_status.result }} \ No newline at end of file + returns: ${{ steps.update_threat_status.result }} diff --git a/registry/tracecat_registry/templates/wazuh/get_results_rootcheck.yml b/registry/tracecat_registry/templates/wazuh/get_results_rootcheck.yml index 1a1828f75..a5f8c779b 100644 --- a/registry/tracecat_registry/templates/wazuh/get_results_rootcheck.yml +++ b/registry/tracecat_registry/templates/wazuh/get_results_rootcheck.yml @@ -31,4 +31,3 @@ definition: Authorization: Bearer ${{ SECRETS.wazuh.WAZUH_API_TOKEN }} verify_ssl: ${{ inputs.verify_ssl }} returns: ${{ steps.get_results_rootcheck.result }} - diff --git a/temporal/config/tracecat-sql.yaml b/temporal/config/tracecat-sql.yaml index 5fa0cb03a..e798707ba 100644 --- a/temporal/config/tracecat-sql.yaml +++ b/temporal/config/tracecat-sql.yaml @@ -1,3 +1,3 @@ limit.maxIDLength: - value: 255 - constraints: {} \ No newline at end of file + constraints: {}