From 69c7dc339fcd9cea4d186998779ec06a10e096b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Mart=C3=ADn?= Date: Mon, 17 Mar 2025 15:44:15 +0100 Subject: [PATCH] fix(prowler): change from prowler.py to prowler-cli.py (#7253) --- README.md | 2 +- contrib/aws/org-multi-account/src/run-prowler-reports.sh | 2 +- contrib/k8s/cronjob.yml | 2 +- docs/developer-guide/debugging.md | 8 ++++---- docs/index.md | 2 +- docs/tutorials/aws/cloudshell.md | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cb40861994..c1b238fff5 100644 --- a/README.md +++ b/README.md @@ -212,7 +212,7 @@ git clone https://github.com/prowler-cloud/prowler cd prowler eval $(poetry env activate) poetry install -python prowler.py -v +python prowler-cli.py -v ``` > [!IMPORTANT] > Starting from Poetry v2.0.0, `poetry shell` has been deprecated in favor of `poetry env activate`. diff --git a/contrib/aws/org-multi-account/src/run-prowler-reports.sh b/contrib/aws/org-multi-account/src/run-prowler-reports.sh index 350ceefb6b..b7488b12e2 100644 --- a/contrib/aws/org-multi-account/src/run-prowler-reports.sh +++ b/contrib/aws/org-multi-account/src/run-prowler-reports.sh @@ -89,7 +89,7 @@ for accountId in $ACCOUNTS_IN_ORGS; do # Run Prowler echo -e "Assessing AWS Account: $accountId, using Role: $ROLE on $(date)" # remove -g cislevel for a full report and add other formats if needed - ./prowler/prowler.py --role arn:"$PARTITION":iam::"$accountId":role/"$ROLE" --compliance cis_1.5_aws -M html + ./prowler/prowler-cli.py --role arn:"$PARTITION":iam::"$accountId":role/"$ROLE" --compliance cis_1.5_aws -M html echo "Report stored locally at: prowler/output/ directory" TOTAL_SEC=$((SECONDS - START_TIME)) echo -e "Completed AWS Account: $accountId, using Role: $ROLE on $(date)" diff --git a/contrib/k8s/cronjob.yml b/contrib/k8s/cronjob.yml index 26bf13a6b5..87ad6d05f2 100644 --- a/contrib/k8s/cronjob.yml +++ b/contrib/k8s/cronjob.yml @@ -17,7 +17,7 @@ spec: image: toniblyx/prowler:latest imagePullPolicy: Always command: - - "./prowler.py" + - "./prowler-cli.py" args: [ "-B", "$(awsS3Bucket)" ] env: - name: AWS_ACCESS_KEY_ID diff --git a/docs/developer-guide/debugging.md b/docs/developer-guide/debugging.md index 33c0849f49..bf51d313c1 100644 --- a/docs/developer-guide/debugging.md +++ b/docs/developer-guide/debugging.md @@ -18,7 +18,7 @@ This file should inside the *.vscode* folder and its name has to be *launch.json "name": "Debug AWS Check", "type": "debugpy", "request": "launch", - "program": "prowler.py", + "program": "prowler-cli.py", "args": [ "aws", "--log-level", @@ -33,7 +33,7 @@ This file should inside the *.vscode* folder and its name has to be *launch.json "name": "Debug Azure Check", "type": "debugpy", "request": "launch", - "program": "prowler.py", + "program": "prowler-cli.py", "args": [ "azure", "--sp-env-auth", @@ -49,7 +49,7 @@ This file should inside the *.vscode* folder and its name has to be *launch.json "name": "Debug GCP Check", "type": "debugpy", "request": "launch", - "program": "prowler.py", + "program": "prowler-cli.py", "args": [ "gcp", "--log-level", @@ -64,7 +64,7 @@ This file should inside the *.vscode* folder and its name has to be *launch.json "name": "Debug K8s Check", "type": "debugpy", "request": "launch", - "program": "prowler.py", + "program": "prowler-cli.py", "args": [ "kubernetes", "--log-level", diff --git a/docs/index.md b/docs/index.md index 27376ecc29..628f9bf7ce 100644 --- a/docs/index.md +++ b/docs/index.md @@ -219,7 +219,7 @@ Prowler is available as a project in [PyPI](https://pypi.org/project/prowler/), git clone https://github.com/prowler-cloud/prowler cd prowler poetry install - poetry run python prowler.py -v + poetry run python prowler-cli.py -v ``` ???+ note If you want to clone Prowler from Windows, use `git config core.longpaths true` to allow long file paths. diff --git a/docs/tutorials/aws/cloudshell.md b/docs/tutorials/aws/cloudshell.md index d40b0dd9b4..0e02ea5da4 100644 --- a/docs/tutorials/aws/cloudshell.md +++ b/docs/tutorials/aws/cloudshell.md @@ -29,7 +29,7 @@ mkdir /tmp/poetry poetry config cache-dir /tmp/poetry eval $(poetry env activate) poetry install -python prowler.py -v +python prowler-cli.py -v ``` > [!IMPORTANT] > Starting from Poetry v2.0.0, `poetry shell` has been deprecated in favor of `poetry env activate`.