Skip to content

Commit

Permalink
Merge pull request #215 from intelowlproject/develop
Browse files Browse the repository at this point in the history
4.4.5
  • Loading branch information
mlodic authored Nov 3, 2023
2 parents 5ec6958 + f7082c4 commit 8d0f8a8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
3 changes: 3 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [4.4.5](https://github.com/intelowlproject/pyintelowl/releases/tag/4.4.5)
- Default TLP for analysis is not TLP:CLEAR anymore. For instance, this prevents the client to overwrite the TLP configuration of a Playbook.

## [4.4.4](https://github.com/intelowlproject/pyintelowl/releases/tag/4.4.4)
- Little fixes

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import os
import sys

VERSION = "4.4.4"
VERSION = "4.4.5"
GITHUB_URL = "https://github.com/intelowlproject/pyintelowl"

sys.path.append(os.path.abspath("../"))
Expand Down
20 changes: 6 additions & 14 deletions pyintelowl/pyintelowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def send_file_analysis_request(
Defaults to ``[]`` i.e. all connectors.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -184,8 +184,6 @@ def send_file_analysis_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not analyzers_requested:
analyzers_requested = []
if not connectors_requested:
Expand Down Expand Up @@ -232,7 +230,7 @@ def send_file_analysis_playbook_request(
Defaults to ``[]`` i.e. all playbooks.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -245,8 +243,6 @@ def send_file_analysis_playbook_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not playbooks_requested:
playbooks_requested = []
if not tags_labels:
Expand Down Expand Up @@ -296,7 +292,7 @@ def send_observable_analysis_request(
Defaults to ``[]`` i.e. all connectors.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -314,8 +310,6 @@ def send_observable_analysis_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not analyzers_requested:
analyzers_requested = []
if not connectors_requested:
Expand Down Expand Up @@ -373,7 +367,7 @@ def send_observable_analysis_playbook_request(
Defaults to ``[]`` i.e. all playbooks.
tlp (str, optional):
TLP for the analysis.
(options: ``WHITE, GREEN, AMBER, RED``). Defaults to ``WHITE``.
(options: ``WHITE, GREEN, AMBER, RED``).
runtime_configuration (Dict, optional):
Overwrite configuration for analyzers. Defaults to ``{}``.
tags_labels (List[str], optional):
Expand All @@ -391,8 +385,6 @@ def send_observable_analysis_playbook_request(
Dict: JSON body
"""
try:
if not tlp:
tlp = "WHITE"
if not playbooks_requested:
playbooks_requested = []
if not tags_labels:
Expand Down Expand Up @@ -685,7 +677,7 @@ def _new_analysis_cli(
obj: str,
type_: str,
check,
tlp: TLPType = "CLEAR",
tlp: TLPType = None,
analyzers_list: List[str] = None,
connectors_list: List[str] = None,
runtime_configuration: Dict = None,
Expand Down Expand Up @@ -775,7 +767,7 @@ def _new_analysis_playbook_cli(
obj: str,
type_: str,
check,
tlp: TLPType = "CLEAR",
tlp: TLPType = None,
playbooks_list: List[str] = None,
runtime_configuration: Dict = None,
tags_labels: List[str] = None,
Expand Down
2 changes: 1 addition & 1 deletion pyintelowl/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "4.4.4"
__version__ = "4.4.5"

0 comments on commit 8d0f8a8

Please sign in to comment.