{"id":28378724,"url":"https://github.com/env0/env0-opa-plugin","last_synced_at":"2026-01-26T08:34:07.681Z","repository":{"id":64373631,"uuid":"573135290","full_name":"env0/env0-opa-plugin","owner":"env0","description":"env0 OPA plugin","archived":false,"fork":false,"pushed_at":"2022-12-18T12:06:17.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-11-16T23:27:35.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://env0.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/env0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-01T19:20:40.000Z","updated_at":"2022-12-13T08:15:50.000Z","dependencies_parsed_at":"2023-01-29T19:02:51.191Z","dependency_job_id":null,"html_url":"https://github.com/env0/env0-opa-plugin","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/env0/env0-opa-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fenv0-opa-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fenv0-opa-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fenv0-opa-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fenv0-opa-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/env0","download_url":"https://codeload.github.com/env0/env0-opa-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/env0%2Fenv0-opa-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28770858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T07:45:00.504Z","status":"ssl_error","status_checked_at":"2026-01-26T07:45:00.070Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T02:07:10.500Z","updated_at":"2026-01-26T08:34:07.675Z","avatar_url":"https://github.com/env0.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# env0 OPA Plugin\n\n  \n\nThis env0 OPA Plugin will allow you to run `opa eval` on a bundle directory as a part of your custom flow. To use this plugin, you will need to use version 2 of `env0.yml`.\n\n  \n\nPlugin is using OPA version `0.46.1`\n\n  \n\n## Inputs\n\n  \n\nThe OPA plugin accepts the following inputs:\n\n* path (required) - the path to your bundle directory (the root folder is your project's root folder)\n\n* query (required) - a query to eval with `opa eval`\n\n* flags - a string containing additional flags as one string\n\n\nIf you are used to using `--input` or `--data` you can bundle those into a bundle directory and use it. Read more about it [here](https://www.openpolicyagent.org/docs/latest/management-bundles/#bundle-build).\n\n\n## Example Usage\n\n  \n\nIn this example we will run `opa eval` with our own bundle file after the \"Terraform Plan\" step of a deploy. We will call that step \"My Step Name\":\n\n```yaml\nversion: 2\ndeploy:\n  steps:\n    terraformPlan:\n      after:\n        - name: My Step Name # The name that will be presented in the UI for this step\n          use: https://github.com/env0/env0-opa-plugin\n          inputs:\n            path: bundle-file-path\n            flags: --fail --format=raw\n            query: data.example.violation[x]\n\n```\n\n  \n\n## Further Reading\n\nYou can read more about the `eval` command and the available flags [here](https://www.openpolicyagent.org/docs/latest/#2-try-opa-eval).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenv0%2Fenv0-opa-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenv0%2Fenv0-opa-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenv0%2Fenv0-opa-plugin/lists"}