Gitea

Written By charan

Last updated About 3 hours ago

Connect your Gitea repositories to dFlow using Personal Access Tokens (PAT).

Gitea Integration: Using a Personal Access Token (PAT)

To authenticate Gitea as a source in dFlow, you need a Personal Access Token (PAT).
This token provides secure, scoped access to your repositories without requiring your username and password.

How to Create a PAT in Gitea

  1. Log in to your Gitea account.

  2. Click on your avatar (top-right) β†’ Settings.

  3. In the left sidebar, go to Applications β†’ Manage Access Tokens.

  4. Click Generate New Token.

  5. Provide the following:

    • Name (e.g., dFlow Integration)

  6. Select the required scopes (see table below).

  7. Click Generate Token.

  8. Copy and securely store the token β€” you will not be able to view it again.

Recommended Scopes

Choose only the permissions needed for your integration:

Scope

Access Level

read:repository

Read-only access to repositories

write:repository

Push and pull Git operations

Token Reuse

The same token can be reused across multiple private repositories within the same Gitea account.

Using the PAT in dFlow

Once you have the PAT:

  1. Create a new service and select type as app.

  2. Navigate to the Gitea tab.

  3. Enter the required details such as Repository URL and Branch.

  4. If the repository is private, paste your Personal Access Token (PAT) in the Git Token field.

    Gitea App setup in dFlow

  5. Click Deploy to launch and view your application live.