DeployNow
...
Advanced Deployment Options
CI/CD with GitHub Actions

OPA Policy Check Action

A GitHub action that validates the policy using OPA.

Usage

Example snippet

This example checks policy using an Open Policy Agent (OPA).

YAML


NOTE: The following is a simple policy in the OPA server.

include.rego:

Text


Inputs

Input

Description

opaServerUrl

Open Policy Agent (OPA) Server address (with protocol)

opaServerAuthToken

Open Policy Agent (OPA) Auth token

opaServerInput

Open Policy Agent (OPA) input

opaServerPackageName

Open Policy Agent (OPA) package name from which the server should fetch the policy

skipTlsValidation

Skip TLS validation. Get the data from OPA by ignoring the certificate (default = false)

Examples

Check policy using an Open Policy Agent (OPA)

You can check the policy using Open Policy Agent (OPA).



NOTE: The following is a simple policy in the OPA server.

include.rego:

package example.include allow := false