Upload violations to GCS bucket as Findings.
Send violations to CSCC via API or via GCS bucket.
Create the output filename. :returns: The output filename for the violations json. :rtype: str
Send violations to CSCC directly via the CSCC API.
Send violations to CSCC via upload to GCS (legacy mode). :param violations: Violations to be uploaded as findings. :type violations: dict :param gcs_path: The GCS bucket to upload the findings. :type gcs_path: str
Transform forseti violations to findings for CSCC API.
|Parameters:||violations (dict) – Violations to be sent to CSCC as findings.|
|Returns:||violations in findings format; each violation is a dict.|
Transform forseti violations to GCS findings format.
violations in findings format; each violation is a dict.
run(violations, gcs_path, mode, organization_id)¶
Generate the temporary json file and upload to GCS.