Been there, done that, got the AOG-due-to-inop-Alternator T-shirt.
In my case I had the battery all charged up and ready for a pleasant flight home staying clear of all airspace where ADS-B, Mode C, or a radio would be required. At that moment, a roving FAA maintenance inspector walked up and ramp checked me. This was on a Saturday morning and there were 3 human beings at that airfield. Me, the guy who gave me a ride, and the FAA guy. True story.
After discussion with him, I did not fly, and wound up sitting in a hotel for 5 days because the alternator I paid hundreds of dollars in shipping for "overnight" delivery was stuck in a snowstorm at the Aircraft Spruce facility in PA. If I had a do-over, I would have found the provision in my AFM that allows operation without an electrical system, and I would have flown that day.
In the OPs case, I would have had my A&P talk me through a temp fix over the phone using a hardware store bolt, flown home, and had him do a proper repair with AN hardware. Or I would have had my A&P talk to the local A&P and work something out. Hopefully.
Regs are important, but are not always the last word. Good judgement and experience are sometimes necessary to decide when a work-around is reasonable, prudent, and justified. Never know when a bear is going to attack.
View attachment 102195