diff --git a/src/gitlab-tofu.sh b/src/gitlab-tofu.sh
index 0c2489a1590da95e88c323037cea7df84224f6e5..5c33e2b6f3f91e29c4e592b1196b4391b9fc6080 100644
--- a/src/gitlab-tofu.sh
+++ b/src/gitlab-tofu.sh
@@ -184,7 +184,7 @@ should_init_without_reconfigure=${GITLAB_TOFU_INIT_NO_RECONFIGURE:-false}
 # Plan variables
 apply_without_plan=${GITLAB_TOFU_APPLY_NO_PLAN:-false}
 plan_cache_path="${GITLAB_TOFU_PLAN_CACHE:-${default_tf_plan_cache:-${base_plan_name}.cache}}"
-plan_json_path="${GITLAB_TOFU_PLAN_JSON:-${default_tf_plan_json:-${base_plan_name}.cache}}"
+plan_json_path="${GITLAB_TOFU_PLAN_JSON:-${default_tf_plan_json:-${base_plan_name}.json}}"
 plan_with_detailed_exitcode=${GITLAB_TOFU_USE_DETAILED_EXITCODE:-false}
 plan_with_json_file=${GITLAB_TOFU_PLAN_WITH_JSON:-false}
 plan_jq_filter='