Skip to content

Commit

Permalink
docs: add github action policy testing automation
Browse files Browse the repository at this point in the history
Signed-off-by: yangci <[email protected]>
  • Loading branch information
oycyc authored Aug 23, 2024
1 parent ebc3ab2 commit 277ab7d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/website/content/integrations/github-action-opa-rego-test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: GitHub Action for OPA Rego Test
subtitle: GitHub Action to automate testing OPA Rego policies
labels:
category: library
type: GitHub Action
inventors:
- masterpoint
code:
- https://github.com/masterpointio/github-action-opa-rego-test
tutorials:
- https://github.com/masterpointio/github-action-opa-rego-test/blob/main/README.md
docs_features:
policy-testing:
note: |
[GitHub Action for OPA Rego Policy Tests](docs/website/content/integrations/rego-test-assertions.md) automates testing for your OPA (Open Policy Agent) Rego policies, generates a report with coverage information, and posts the test results as a comment on your pull requests, making it easy for your team to review and approve policies.
---

[GitHub Action for OPA Rego Policy Tests](docs/website/content/integrations/rego-test-assertions.md) by [Masterpoint](https://masterpoint.io/) is used to automate testing for your OPA (Open Policy Agent) Rego policies, generates a report with coverage information, and posts the test results as a comment on your pull requests, making it easy for your team to review and approve policies.

Use this to test your OPA Rego files for [Spacelift policies](https://docs.spacelift.io/concepts/policy), [Kubernetes Admission Controller policies](https://www.openpolicyagent.org/docs/latest/kubernetes-introduction/), [Docker authorization policies](https://www.openpolicyagent.org/docs/latest/docker-authorization/), or any other use case that uses [Open Policy Agent's policy language Rego](https://www.openpolicyagent.org/docs/latest/). This Action also updates PR comments with the test results in place to prevent duplication.
4 changes: 4 additions & 0 deletions docs/website/content/organizations/masterpoint.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
link: https://masterpoint.io
title: Masterpoint Consulting
---
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 277ab7d

Please sign in to comment.