Skip to content

How do I securely give my CI server access to private Git repos? #784

Answered by brikis98
brikis98 asked this question in How do I
Discussion options

You must be logged in to vote

Here's the approach we typically recommend. In the examples below, I'll use GitHub as the version control system and GitHub Actions as the CI server, but the same approach works with most other version control systems (e.g., GitLab, BitBucket, etc.) and CI servers (e.g., GitLab, CircleCI, etc.).

  1. Create a machine user in GitHub. A machine user is a user account that isn't used by any individual person (i.e., it is not your personal GitHub account); instead, it's an account owned by your company that you use specifically for automation. Using a machine user ensures that (a) if any individual person leaves your company, all your automation doesn't suddenly break when that person loses acce…

Replies: 1 comment 1 reply

Comment options

brikis98
Nov 22, 2023
Maintainer Author

You must be logged in to vote
1 reply
@yorinasub17
Comment options

Answer selected by brikis98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants