feat: bump policies to new format + v2#3
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Cloud Custodian compliance policy and its tests to use the new per-resource schema_version: v2 payload format, and introduces resource-deduped risk templates/labels aligned to that format.
Changes:
- Migrates
cloud_custodian_resources_detectedpolicy logic from “resources array + execution errors” to per-resourceassessment.statusevaluation and addsrisk_templates/labels. - Rewrites Rego tests to validate v2 payload behavior, including title/description formatting and resource display-name extraction from ARNs.
- Updates README guidance to describe the v2 per-resource payload and dedupe labels.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| policies/cloud_custodian_resources_detected.rego | Implements v2 per-resource evaluation, labels, and a risk template for deduped violations. |
| policies/cloud_custodian_resources_detected_test.rego | Replaces legacy tests with v2 payload fixtures and assertions for violations, metadata, labels, and templates. |
| README.md | Documents the v2 payload expectations and recommended dedupe labels. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Gustavo Carvalho <gustavo.carvalho@container-solutions.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.