Bridgecrew supports policy-as-code capabilities using YAML-based policy definition files to enable attribute and connection checks (composite checks).
Visit Prisma Cloud’s documentation to define YAML based policies -
https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-code-security/get-started/code-repositories-policy-management/code-editor
based on our sample files - https://docs.paloaltonetworks.com/prisma/prisma-cloud/prisma-cloud-admin-code-security/get-started/code-repositories-policy-management/custom-build-policy-examples.
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.