> ## 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.
