From 87e9b0f80730ba02ef604be3c87cbcfbf9413910 Mon Sep 17 00:00:00 2001 From: Prowler Bot Date: Mon, 6 Jan 2025 21:38:38 +0100 Subject: [PATCH] fix(aws): add missing sqs service without subservice (#6364) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Rubén De la Torre Vico Co-authored-by: MrCloudSec --- .github/workflows/build-lint-push-containers.yml | 2 +- .github/workflows/pull-request.yml | 2 +- .github/workflows/pypi-release.yml | 2 +- prowler/providers/aws/aws_provider.py | 9 ++++++++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-lint-push-containers.yml b/.github/workflows/build-lint-push-containers.yml index 08281db725b..d959e2325ef 100644 --- a/.github/workflows/build-lint-push-containers.yml +++ b/.github/workflows/build-lint-push-containers.yml @@ -62,7 +62,7 @@ jobs: - name: Install Poetry run: | - pipx install poetry + pipx install poetry==1.8.5 pipx inject poetry poetry-bumpversion - name: Get Prowler version diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f0683c7eb03..b593e8f30cc 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -36,7 +36,7 @@ jobs: if: steps.are-non-ignored-files-changed.outputs.any_changed == 'true' run: | python -m pip install --upgrade pip - pipx install poetry + pipx install poetry==1.8.5 - name: Set up Python ${{ matrix.python-version }} if: steps.are-non-ignored-files-changed.outputs.any_changed == 'true' uses: actions/setup-python@v5 diff --git a/.github/workflows/pypi-release.yml b/.github/workflows/pypi-release.yml index bf57beaedf0..777cd0aacba 100644 --- a/.github/workflows/pypi-release.yml +++ b/.github/workflows/pypi-release.yml @@ -37,7 +37,7 @@ jobs: - name: Install dependencies run: | - pipx install poetry + pipx install poetry==1.8.5 - name: Setup Python uses: actions/setup-python@v5 diff --git a/prowler/providers/aws/aws_provider.py b/prowler/providers/aws/aws_provider.py index de82b0342a6..5552af9b43a 100644 --- a/prowler/providers/aws/aws_provider.py +++ b/prowler/providers/aws/aws_provider.py @@ -789,7 +789,14 @@ def get_checks_from_input_arn(self) -> set: # Handle if there are audit resources so only their services are executed if self._audit_resources: # TODO: this should be retrieved automatically - services_without_subservices = ["guardduty", "kms", "s3", "elb", "efs"] + services_without_subservices = [ + "guardduty", + "kms", + "s3", + "elb", + "efs", + "sqs", + ] service_list = set() sub_service_list = set() for resource in self._audit_resources: