Combing through your initial post (and the GitHub Actions issue), it looks like the macos image release that started causing the issue was one that installed .NET 8.
We had users facing issues with preview versions of .NET 8 that we… expected were fixed in the final release.
Could you run dotnet --info in the context of your build using this image and return the results?