Setting Up GitHub
This example walks through setting up Git Connectivity with GitHub, covering the available authentication methods: Personal Access Token (simplest), GitHub App (recommended for organizations), and SSH Key.
Option 1: Personal Access Token (PAT)
The simplest way to connect to GitHub. Best for individual developers or quick setups.
Step 1: Create a Personal Access Token on GitHub
- Go to GitHub > Settings > Developer settings > Personal access tokens > Fine-grained tokens (or Classic tokens).
- Click Generate new token.
- Give the token a descriptive name (e.g., "Flowable Design").
- Set an expiration date.
- For fine-grained tokens, grant the following repository permissions:
- Contents: Read and write
- Pull requests: Read and write
- Metadata: Read-only
- For classic tokens, select the
reposcope. - Click Generate token and copy the token value.
Store the token securely. GitHub will only show it once. If you lose it, you'll need to generate a new one.
Step 2: Configure the GitHub Provider in Design
- In Flowable Design, navigate to the Git Providers management page.
- Click Add Provider.
- Select GitHub as the provider type.
- Fill in the fields:
- Name: e.g., "GitHub - Personal"
- Server URL:
https://github.com(or your GitHub Enterprise URL) - Authentication type: Personal Access Token
- Access Token: Paste the token from Step 1
- Click Test Connection to verify.
- Save the provider.
Step 3: Clone or Connect a Repository
- Navigate to your workspace.
- Choose Clone from Git to import an existing repository, or open an existing app and use Setup Git to connect it.
- Select the GitHub provider you just created.
- Browse and select the repository, or enter the repository URL manually.
- Select the branch (default:
main). - Complete the setup.
Option 2: GitHub App (Recommended for Organizations)
GitHub Apps provide fine-grained permissions and don't tie access to an individual user account.
Step 1: Create a GitHub App
- Go to your GitHub organization's Settings > Developer settings > GitHub Apps.
- Click New GitHub App.
- Configure the app:
- GitHub App name: e.g., "Flowable Design Integration"
- Homepage URL: Your Flowable Design URL
- Repository permissions:
- Contents: Read & write
- Pull requests: Read & write
- Metadata: Read-only
- Disable webhook (uncheck Active under Webhook).
- Click Create GitHub App.
- Note the App ID from the app's settings page.
- Generate a private key and download the
.pemfile.
Step 2: Install the GitHub App
- From the GitHub App settings page, click Install App.
- Select the organization to install it on.
- Choose which repositories the app should have access to (all or specific ones).
- Complete the installation.
- Note the Installation ID from the URL of the installation page (the number in the URL after
/installations/).
Step 3: Configure the GitHub App Provider in Design
- In Flowable Design, navigate to the Git Providers management page.
- Click Add Provider.
- Select GitHub as the provider type.
- Fill in the fields:
- Name: e.g., "GitHub - Organization App"
- Server URL:
https://github.com - Authentication type: GitHub App
- App ID: The App ID from Step 1
- Private Key: Paste the contents of the
.pemfile from Step 1 - Installation ID: The Installation ID from Step 2
- Click Test Connection to verify.
- Save the provider.
Option 3: SSH Key
SSH key authentication provides a secure, token-free way to authenticate with GitHub.
Step 1: Generate an SSH Key Pair
- Open a terminal and run:
ssh-keygen -t ed25519 -C "flowable-design" - Save the key pair to a file (e.g.,
~/.ssh/flowable_design). - Copy the public key:
cat ~/.ssh/flowable_design.pub
Step 2: Add the Public Key to GitHub
- Go to GitHub > Settings > SSH and GPG keys.
- Click New SSH key.
- Give it a title (e.g., "Flowable Design") and paste the public key.
- Click Add SSH key.
Step 3: Configure the SSH Provider in Design
- In Flowable Design, navigate to the Git Providers management page.
- Click Add Provider.
- Select GitHub as the provider type.
- Set the Authentication Method to SSH Key.
- Fill in the fields:
- Name: e.g., "GitHub - SSH"
- Server URL:
https://github.com - Private Key: Paste the contents of the private key file (
~/.ssh/flowable_design)
- Click Test Connection to verify.
- Save the provider.
Verifying the Setup
After configuring the provider and connecting an app:
- Make a small change to a model in your app.
- Open the Git panel and click Commit.
- Enter a commit message and confirm.
- Open the repository on GitHub and verify the commit appears with the correct author and message.
GitHub Enterprise Server
For GitHub Enterprise Server (self-hosted), the setup is identical to the options above. The only difference is the Server URL, which should point to your GitHub Enterprise instance (e.g., https://github.yourcompany.com).
