docs: align rego policy reference with safe policy design recommendat…#231
Merged
Conversation
…ions The previous page promoted count(violations) == 0 as the idiomatic allow pattern, which is the false-positive anti-pattern the tutorial and blog explicitly warn against. Rewrite to match the recommendations: - Fix allow contract: show positive assertion pattern, not absence of violations - Add Safe policy design section: three rules with unsafe/safe code examples - Add Params section: --params flag, data.params aliasing pattern - Add Local testing section: kosli evaluate input workflow - Rewrite both examples to use positive assertions and data.params - Simplify Rule 3 to an overview with links to the tutorial - Parameterise hard-wired snyk-container-scan attestation name - Add descriptive sentences to both examples - Replace em-dashes and arrows with ASCII equivalents Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
mbevc1
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ions
The previous page promoted count(violations) == 0 as the idiomatic allow pattern, which is the false-positive anti-pattern the tutorial and blog explicitly warn against. Rewrite to match the recommendations: