GCP Terraform secret Manager

In the below code which is taken from terraform registry… If we pass the secret value. it is getting passed as a plain text. We need to pass the secret value but once we pass the value nobody else can see the secret value even if they clone the repository where our code or state file is stored… Is there any way

resource "google_secret_manager_secret" "secret-basic" {
  secret_id = "secret"

  labels = {
    label = "my-label"
  }

  replication {
    user_managed {
      replicas {
        location = "us-central1"
      }
      replicas {
        location = "us-east1"
      }
    }
  }
}