Setting Up Git Credentials
Ileen needs write access to your GitHub repositories to push code and manage pull requests. This guide covers how to create and configure a GitHub Personal Access Token (PAT).
Applies to: Design Mode (Developer Setup) · Develop Mode (Project Setup) · Deploy Mode (fix-and-redeploy)
Required permissions
Ileen only needs access to repository content. It does not need organisation admin, CI/CD, or webhook permissions.
| Permission | Access |
|---|---|
| Metadata | Read |
| Contents (code) | Read and Write |
| Commit statuses | Read and Write |
| Merge queues | Read and Write |
| Pull requests | Read and Write |
GitHub — create a fine-grained PAT
GitHub’s fine-grained personal access tokens let you grant exactly the permissions above, scoped to specific repositories.
- Go to GitHub → Settings → Developer settings → Personal access tokens → Fine-grained tokens.
- Click Generate new token.
- Give it a name (e.g. Ileen) and set an expiry (90 days is a reasonable default).
- Under Repository access, select Only select repositories and choose the repos you’ll connect to Ileen.
- Under Repository permissions, set:
- Contents → Read and Write
- Commit statuses → Read and Write
- Merge queues → Read and Write
- Pull requests → Read and Write
- Metadata is set to Read automatically.
- Click Generate token and copy it immediately — it won’t be shown again.
Entering credentials in Ileen
Design Mode — Developer Setup
When you reach Stage 4 (Development) in Design Mode, the Developer Setup screen lists every repository defined by the Tech Leader. For each one:
- Enter the repository HTTPS URL (e.g.
https://github.com/acme/ecommerce-api). - Enter the Personal Access Token.
- Choose the base branch (defaults to
main).
Shared token: When the project has more than one repository, the Developer Setup screen shows a “Shared Access Token (optional)” field at the top. Enter your PAT there and it will be used for every repo that doesn’t have its own token below — you only need to enter it once.
Develop Mode — Project Setup
Develop Mode connects to one or more existing repositories:
- Enter the repository URL.
- Choose the base branch (the branch Ileen will read and commit to).
- Enter the PAT if the repository is private.
- Click Create Project.
Deploy Mode — fix-and-redeploy commits
Deploy Mode also uses your Git PAT when the Deploy Agent applies code fixes during a fix-and-redeploy cycle. When a deployment fails and the agent repairs the code, it commits the change and pushes it to the configured branch before triggering a new build.
No extra configuration is needed — the same PAT you entered in Developer Setup is reused automatically. Make sure it has Contents: Read and Write permission on every repository in the project (see the Required permissions table above).
Token security
- Tokens are encrypted at rest and in transit.
- They are used only during active coding jobs and deployment runs.
- Tokens are never included in logs or error messages.
- Revoke a token at any time from GitHub’s token settings without affecting other Ileen functionality.
Troubleshooting
| Error | Likely cause | Fix |
|---|---|---|
Authentication failed | Wrong token or expired | Regenerate the token and update it in Ileen |
Repository not found | URL typo or PAT has no access to the repo | Check the URL and token scopes |
Push rejected: non-empty repository | Repo already has content | Create a new empty repository |
SSO required | GitHub SAML org requires SSO authorisation | Authorise the token for the org (see GitHub tip above) |
Next steps
- Tutorial 01: Design Mode — full walkthrough including Git setup
- Tutorial 02: Develop Mode — connecting an existing repository