The railway line is that for Turin-Susa or Turin-Bardonecchia alighting at Avigliana.
From Avigliana taxis are available (about 14 Km to the Sacra, price 25€).
From the 1st of April to the 1st of November, on Wednesday, Saturday, Sunday and during all non-working days (Easter Monday; 25 April, 1st Mai, 2nd June, 15 August, 1st November), there is a bus connection service from Avigliana. Price: 5,00€ both ways. See more here.