The new version of the step (3.4.2) now retries checkout with fetch-tags for cases when commit hash belongs to a tag and isn’t to a branch.
Related discussion: