Git

Flowgen can sync flow definitions and resources from a Git repository.

  • Git Sync — pulls a remote Git repository on a schedule and reconciles flow definitions.

Credentials

Git tasks authenticate via a JSON credentials file referenced by credentials_path. Only HTTPS token authentication is supported.

{
  "token": "ghp_xxxxxxxxxxxx"
}

The token is presented to the server through a gix credential helper that responds to the server’s WWW-Authenticate challenge — the token never appears in the repository URL, in .git/config, or in logs.

username is optional and defaults to x-access-token, which is accepted by GitHub (PATs and App installation tokens), GitLab personal/deploy tokens, and Bitbucket app passwords. Override it when the host expects a specific literal username:

{
  "token": "glpat-xxxxxxxxxxxx",
  "username": "oauth2"
}

Common values:

Host / token typeusername
GitHub PAT, GitHub Appomit (defaults to x-access-token)
GitLab personal/deploy tokenomit, or oauth2 for OAuth tokens
Bitbucket app passwordomit
Bitbucket Cloud repository access tokenx-token-auth
Azure DevOps PATany non-empty string

SSH URLs (git@..., ssh://...) are not supported.