implementing-policy-as-code-with-open-policy-agent

Pass

Audited by Gen Agent Trust Hub on Apr 20, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The script scripts/agent.py uses the subprocess.run function to execute OPA CLI commands such as eval, test, and check. These calls are implemented using list-based arguments which prevents shell injection vulnerabilities.
  • [COMMAND_EXECUTION]: The script scripts/process.py executes the conftest and kubectl utilities via subprocess.run to evaluate local manifests and query cluster audit violations. These operations use safe list-based command construction.
  • [EXTERNAL_DOWNLOADS]: The skill provides instructions to download the conftest binary from the official Open Policy Agent GitHub repository and the opa binary from the project's official website. These are trusted sources for these tools.
  • [EXTERNAL_DOWNLOADS]: Documentation in references/api-reference.md includes standard package installation commands for the requests and pyyaml Python libraries from public registries.
Audit Metadata
Risk Level
SAFE
Analyzed
Apr 20, 2026, 11:33 PM