> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the OPA plugin

> Enforce policies in env zero deployments using the OPA plugin, which installs the opa binary and runs opa eval against a bundle path with a specified query.

## Overview

This plugin executes the Open Policy Agent engine (aka the `opa` CLI) and integrates policy enforcements within your env zero deployments.

The plugin will install the `opa` binary and execute its `opa eval` command

For more information, check out the [OPA Plugin git repository](https://github.com/env0/env0-opa-plugin).

## Inputs

To use the OPA plugin, you need to pass the following inputs:

1. `path` (**Required**) - the path to your bundle directory (the root folder is your project's root folder)
2. `query` (**Required**) - a query to eval with opa eval
3. `flags` - a string containing additional flags as one string

## Next steps

* [Using the Checkov plugin](/guides/integrations/plugins/checkov-plugin) - Scan IaC for security misconfigurations.
* [Using the TFsec plugin](/guides/integrations/plugins/tfsec-plugin) - Detect Terraform security issues with tfsec.
* [Manage policies](/guides/policies-governance/policies) - Define and apply governance policies across environments.
* [Ready-to-use policies](/guides/policies-governance/ready-to-use-policies) - Apply pre-built policy bundles to your organization.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.