aws-samples / devsecops-cicd

MIT No Attribution
86 stars 138 forks source link

Update the securityhub.py & more #8

Open MoisesTapia opened 2 years ago

MoisesTapia commented 2 years ago

Issue #, if available:

Description of changes:

Update the securityhub.py, because the ProductARN was no setup right, it had a default region

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

MoisesTapia commented 2 years ago

In my last commit, I did modify:

    "ProductArn": "arn:aws-us-gov:securityhub:{0}:{1}:product/{1}/default".format(region, account_id),
    "ProductArn": "arn:aws:securityhub:{0}:{1}:product/{1}/default".format(region, account_id),

Problem:

When lambada ran the report process, it told us that you don't have permission to perform this action:

securytuhyb:BatchImportFindings

@manepals