mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
fix(aws): codebuild service threw KeyError for projects type CODEPIPELINE (#6929)
Co-authored-by: Kay Agahd <kagahd@users.noreply.github.com>
This commit is contained in:
@@ -84,12 +84,13 @@ class Codebuild(AWSService):
|
||||
if project_info["source"]["type"] != "NO_SOURCE":
|
||||
project.source = Source(
|
||||
type=project_info["source"]["type"],
|
||||
location=project_info["source"]["location"],
|
||||
location=project_info["source"].get("location", ""),
|
||||
)
|
||||
project.secondary_sources = []
|
||||
for secondary_source in project_info.get("secondarySources", []):
|
||||
source_obj = Source(
|
||||
type=secondary_source["type"], location=secondary_source["location"]
|
||||
type=secondary_source["type"],
|
||||
location=secondary_source.get("location", ""),
|
||||
)
|
||||
project.secondary_sources.append(source_obj)
|
||||
environment = project_info.get("environment", {})
|
||||
|
||||
Reference in New Issue
Block a user