It started to fail with the recent macOS 12.5.1 update. Changing the macOS version to 12.4 in Workflow environment settings fixes the issue in my case.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: