Gitlab
Connect your Gitlab and deploy applications with ease.
GitLab Integration: Using a Personal Access Token (PAT)
To authenticate GitLab as a source in dFlow, you need a Personal Access Token (PAT).
This token grants secure, scoped access to Git operations—without relying on your password.
How to Create a PAT in GitLab
- Log in to your GitLab account.
- Click your avatar (top-right) → Edit profile.
- Navigate to Access Tokens in the left sidebar.
- Click Add new token.
- Provide the following:
- Name (e.g.,
dFlow Integration
) - Expiration date (default: 365 days; max up to 400 days if allowed)
- Name (e.g.,
- Select the appropriate scopes (see table below).
- Click Create.
- Copy and securely store the token — it will not be shown again.
Recommended Scopes
Choose the least-privilege scopes necessary for your use case:
Scope | Access Level |
---|---|
read_repository | Read-only access to Git repositories |
write_repository | Push and pull Git operations |
Token Reuse
The same token can be used for all private repository deployments.
Using the PAT in dFlow
Once you have the PAT:
-
Create a new service and select type as
app
. -
Navigate to the GitLab tab.
-
Enter the required details such as Repository URL and Branch.
-
If the repository is private, provide your Personal Access Token (PAT) in the
Git Token
field. -
Click Deploy to launch and view it live.