Happened to me when I tried to create workflow, but didn't set up the origin branch in my repo, so i only had the git initialized, but not remote branch.
After I created the repo in GitHub and pushed changes to remote, my workflow started to show the Primary Repository as intended