We study the anisotropic Heisenberg spin-glass model on a three-dimensional hierarchical lattice (designed to approximate the cubic lattice), within a real-space renormalization-group approach. Two different initial probability distributions for the exchange interaction (Jij), Gaussian and uniform, are used, with zero mean and width J. The (kT/J) x Delta0 phase diagram is obtained, where T is the temperature, Delta0 is the first moment of the probability distribution for the uniaxial anisotropy, and k is the Boltzmann constant. For the Ising model (Delta0 = 1), there is a spin-glass phase at low temperatures (high J) and a paramagnetic phase at high temperatures (low J). For the isotropic Heisenberg model (Delta0 = 0), our results indicate no spin-glass phase at finite temperatures. The transition temperature between the spin-glass and paramagnetic phase decreases with Delta0, as expected, but goes to zero at a finite value of the anisotropy parameter, namely Delta0 = Deltac approximately 0.59. Our results indicate that the whole transition line, between the paramagnetic and the spin-glass phases, for Deltac < Delta0 < 1, belongs to the same universality class as the transition for the Ising spin glass.