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 2017, on Wednesday, Saturday, Sunday and during all non-working days (17 April Easter Monday; 25 April, 1st Mai, 2nd June, 15 August, 1st November), there is a bus connection service from Avigliana. Price: 4€ both ways. See more here.