CI build token does not work when the triggering user is owner of a project
Summary
the CI build token is used during a CI run to fetch code and perform other actions with the permissions of the triggering user. However, where the triggering user is an owner of a private project, the token is not valid
Steps to reproduce
Trigger a build as owner of a project (with no other memberships)
Expected behavior
200 - repository is cloned via HTTPS
Actual behavior
403 - permissions denied
Relevant logs and/or screenshots
Reported in https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/issues/1721 - cc @skymoo @SlavikCA @ccoley am I describing your problem accurately?
/cc @ayufan as requested