fix: read OpenTofu version from JSON output

Determine the installed OpenTofu version with tofu version -json instead of relying on the OPENTOFU_VERSION build-time environment variable. This makes version checks reflect the binary actually available at runtime. Both supported Docker images already include jq.

Merge request reports

Loading
Loading