docs(opa): enhance OPA/Conftest reference with strict check, pre-commit, bundle packaging, and conftest pull - #89
Draft
nitinjain999 wants to merge 1 commit into
Draft
docs(opa): enhance OPA/Conftest reference with strict check, pre-commit, bundle packaging, and conftest pull#89nitinjain999 wants to merge 1 commit into
nitinjain999 wants to merge 1 commit into
Conversation
…onftest pull, pre-commit integration
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.
Summary
Enhances
references/opa.mdandcommands/opa.mdwith seven documentation improvements aligned to OPA v1.x and Conftest v0.50+ workflows.Changes
references/opa.mdopa check --strict <dir>after format check,regal fix <dir>beforeregal lint, with rationale for eachopa evaltracing: basic invocation and--explain fullvariant for rule evaluation debugging.pre-commit-config.yamlusinganderseknert/pre-commit-opa@v1.5.1with 6 hooks (opa-fmt,opa-check,opa-test,conftest-fmt,conftest-test,conftest-verify), monorepo scoping viafiles:, hook execution order, and install commandopa buildwith--entrypointand--signing-key, ORAS OCI push to GHCR,opa inspectto verify, versioning conventionconftest pull oci://ghcr.io/...andconftest pull git::https://...,policy.yamlfor pinned sources,conftest test --update,.gitignoreentry for.cache/conftest/commands/opa.mdopa check --strict <dir>) and step 4 (regal fix <dir>) before lint; renumbered subsequent stepsopa evaltracing (basic +--explain fullvariants); renumbered old steps 3→4 and 4→5Validation
conftest fmt --check→opa check --strict→regal fix→regal lint→conftest verify→conftest testpre-commit install && pre-commit run --all-filesopa build ./policies --entrypoint terraform/iam -o bundle.tar.gzto verify bundle packaging syntaxRollback
Docs-only change — no runtime or infrastructure impact. Close or revert the PR to undo.