chore(slogan): update Prowler slogan (#3619)

This commit is contained in:
Sergio Garcia
2024-04-01 12:19:14 +02:00
committed by GitHub
parent 046069a656
commit 175e8d2b05
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ def print_banner(args):
| '_ \| '__/ _ \ \ /\ / / |/ _ \ '__|
| |_) | | | (_) \ V V /| | __/ |
| .__/|_| \___/ \_/\_/ |_|\___|_|v{prowler_version}
|_|{Fore.BLUE} the handy cloud security tool
|_|{Fore.BLUE} the handy multi-cloud security tool
{Fore.YELLOW}Date: {timestamp.strftime("%Y-%m-%d %H:%M:%S")}{Style.RESET_ALL}
"""
+11 -1
View File
@@ -57,6 +57,16 @@ def create_message_identity(provider):
)
def create_title(identity, stats):
try:
title = f"Hey there 👋 \n I'm *Prowler*, _the handy multi-cloud security tool_ :cloud::key:\n\n I have just finished the security assessment on your {identity} with a total of *{stats['findings_count']}* findings."
return title
except Exception as error:
logger.error(
f"{error.__class__.__name__}[{error.__traceback__.tb_lineno}]: {error}"
)
def create_message_blocks(identity, logo, stats):
try:
blocks = [
@@ -64,7 +74,7 @@ def create_message_blocks(identity, logo, stats):
"type": "section",
"text": {
"type": "mrkdwn",
"text": f"Hey there 👋 \n I'm *Prowler*, _the handy cloud security tool_ :cloud::key:\n\n I have just finished the security assessment on your {identity} with a total of *{stats['findings_count']}* findings.",
"text": create_title(identity, stats),
},
"accessory": {
"type": "image",
+4 -3
View File
@@ -5,6 +5,7 @@ from prowler.config.config import aws_logo, azure_logo, gcp_logo
from prowler.lib.outputs.slack import (
create_message_blocks,
create_message_identity,
create_title,
send_slack_message,
)
from tests.providers.aws.utils import AWS_ACCOUNT_NUMBER, set_mocked_aws_provider
@@ -65,7 +66,7 @@ class TestSlackIntegration:
"type": "section",
"text": {
"type": "mrkdwn",
"text": f"Hey there 👋 \n I'm *Prowler*, _the handy cloud security tool_ :cloud::key:\n\n I have just finished the security assessment on your {aws_identity} with a total of *{stats['findings_count']}* findings.",
"text": create_title(aws_identity, stats),
},
"accessory": {
"type": "image",
@@ -145,7 +146,7 @@ class TestSlackIntegration:
"type": "section",
"text": {
"type": "mrkdwn",
"text": f"Hey there 👋 \n I'm *Prowler*, _the handy cloud security tool_ :cloud::key:\n\n I have just finished the security assessment on your {azure_identity} with a total of *{stats['findings_count']}* findings.",
"text": create_title(azure_identity, stats),
},
"accessory": {
"type": "image",
@@ -225,7 +226,7 @@ class TestSlackIntegration:
"type": "section",
"text": {
"type": "mrkdwn",
"text": f"Hey there 👋 \n I'm *Prowler*, _the handy cloud security tool_ :cloud::key:\n\n I have just finished the security assessment on your {gcp_identity} with a total of *{stats['findings_count']}* findings.",
"text": create_title(gcp_identity, stats),
},
"accessory": {
"type": "image",