You can use CloudGuard Dome9 in your CI/CD pipeline to assess cloud environments' compliance with DevSecOps security policies. Dome9 also has an open-source set of Python scripts that you can use to quickly run assessments from within your CI/CD environment, and get immediate indications of compliance issues.
Download the Github repo Python_API_SDK.
Refer to the readme file in the implementation folder for details about using the script and the prerequisites.
The script first synchronizes Dome9 with the cloud account, and then runs the assessment policies you select on the account.