Bridgecrew supports policy-as-code capabilities using YAML-based policy definition files to enable attribute and connection checks (composite checks).
Visit bridgecrew’s documentation to define YAML based policies - https://docs.bridgecrew.io/docs/yaml-format-for-custom-policies based on our sample files - https://docs.bridgecrew.io/docs/examples-yaml-based-custom-policies.
To use the API request, add your token to the header. API supports both YAML and JSON configuration of Bridgecrew custom policy schema)
This API gets all Bridgecrew custom policies with count of passed, failed, suppressed resources, scan status (compliant/non-compliant), and attached benchmarks of specific policies.
Use the example below as a reference for the expected output of this API request.