Set a teammate's GitHub or GitLab push account
Do this when a teammate's tasks do their work but can't push it, or when they should push through a different GitHub or GitLab account. Tasks started from a person's account push with the secret named in their Git Access. While it is empty, their pushes are refused. An org admin can set it for anyone, without waiting for them to sign in.
Who can do this: the org admin role. Anyone else sees the field locked.
- Make sure the person can use a GitHub or GitLab secret: one of their own, or one shared with them. If they have none, add one first; see Add a secret.
- In the sidebar, select Directory, then the People tab.
- Select the person's name. Their account opens on the Profile tab.
- Find Git Access, below Set new password and Description. It reads Not connected while empty, and the line under it says Empty: pushes are refused.
- Select the field and pick a secret. Only the GitHub and GitLab secrets this person may use are listed, each with its type beside its name; type to narrow the list. With none to list, the line under the field says No GitHub or GitLab credential yet. and links to Secrets.
- Select Save at the bottom of the page. Saved. shows beside it.
- Ask the person to start the task again, or start it yourself if you can, and check that it pushes.
To stop someone's tasks from pushing, clear Git Access and select Save.
When the line under the field warns you
- The selection below is no longer available to this account: the secret was deleted, or the person lost access to it. Their pushes are refused until you pick another one and save.
- The credential list is unavailable, so this cannot be changed here.: the list didn't load. The saved choice is kept; reload the page and try again.
Each person can also connect their own Git accounts from their profile. See Profile.
Related
- How secrets work: which secrets a person may use, and how tasks use them for pushing code.
- Check what someone can access: every role a person holds, before you hand them a secret.
- People: every field on a person's Profile tab.