Skip to content

Inspector Events json format has changed. #1

@thegippygeek

Description

@thegippygeek

It would appear the event payload has changed. for Inspector-to-S3ES-crossAcnt.py

 sns_message = json.loads(event['Records'][0]['body'])
 inspector_message = json.loads(sns_message['Message'])

 if inspector_message["event"] == 'FINDING_REPORTED':

i was able to get it working by changing the following.

    sns_message = json.dumps(event)
    inspector_message = json.loads(sns_message)

     if inspector_message['event'] == 'FINDING_REPORTED':

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions