The recently developed orthogonally spin-adapted linear-response coupled-cluster theory with singly and doubly excited clusters (LRCCSD) has been applied to calculate the dipole moment function of HF. Using an accurate potential energy function derived from spectroscopic data and a dipole moment function obtained in LRCCSD calculations, the effective dipole moment values in individual vibrational states and the corresponding vibrational transition dipole moments have been determined over a wide range of values of vibrational quantum numbers. The calculated matrix elements of the dipole moment have been found to be in good agreement with the available experimental and theoretical data, indicating the suitability of the LRCCSD approach for such calculations.