One thing to avoid is a conductive path that goes around the toroid (from the bottom, through the hole, around the top, and back to the bottom).
That forms a "shorted turn" that will degrade the transformer.
A screw through the hole, with no "roof" around the toroid, is OK.