Connect GitHub for PR Previews
Helm reads your code on GitHub through the Helm GitHub App. This page walks through everything on the GitHub side: installing the App, linking your GitHub account to your Helm organization, choosing the repositories Helm may read, and letting your GitHub Actions workflows call Helm. It also explains what Helm does when a pull request closes, and how to remove access.
What you're about to do, in plain English
A GitHub App is a program that a GitHub account owner installs on their account and allows to read chosen repositories. Helm has one, the Helm GitHub App. On GitHub's pages it is called Helm Code App. Once it is installed and linked to your Helm organization, Helm can copy your backend repository to build previews, check which branches exist, and learn from GitHub when a pull request closes. You never create a GitHub token or add a webhook to a repository. A webhook is a message GitHub sends to another service when something happens in a repository; the App's messages replace them.
There are four parts:
- Connect GitHub — install the App on the GitHub account that owns your repositories, and link that account to your Helm organization. One click in Helm starts both.
- Check access — see which repositories Helm can read, and add more later.
- Choose repositories in Helm — tell each project which repositories belong to it, and which one is the backend.
- Authenticate GitHub Actions — let your workflows prove to Helm who they are, with a GitHub OIDC token or a project API key.
Who does each step
| Step | Role in Helm | Role on GitHub |
|---|---|---|
| Connect GitHub, Finish connecting, Connect an existing installation | Owner or Admin of the Helm organization | The account holder, for a personal account. An owner of the GitHub organization, for an organization. Other members can only ask an owner to approve. |
| Approve an install request | None. No Helm account is needed. | Owner of the GitHub organization |
| Change which repositories the App can read | None | The account holder, or an owner of the GitHub organization |
| Choose the project's repositories, set Backend Repo URL | Project Admin or higher | None |
| Create a project API key | Project Admin or higher | None |
| Add a repository secret | None | Admin of the repository |
| Add the workflow file | None | Write access to the repository |
An Owner or Admin of the Helm organization also counts as a Project Admin on every project in the organization.
Step 1 — Connect GitHub from Helm
This installs the Helm GitHub App on your GitHub account or organization and links that account to your Helm organization in one pass.
- In Helm, open your organization's page, click the Settings tab at the top, then click GitHub in the list on the left. The address is
/<organization>/settings/github/. Only Owners and Admins see the Settings tab. -
Find the Connect GitHub card, below the GitHub Owner field. It says "No GitHub account is connected to this Helm organization yet." Click Connect GitHub.
If an account is already connected, the button reads Connect another account or reconnect.
- GitHub opens the install page for Helm Code App. If GitHub asks where to install it, choose the personal account or the GitHub organization that owns your backend repository.
-
Under repository access, choose one of these:
- Only select repositories (recommended): then select the backend repository and every repository whose workflows will ask for previews or upload builds, for example your iOS and Android app repositories.
- All repositories: Helm can read every repository the account owns now, and every one it creates later.
- Click Install. GitHub may label the button Install & Authorize, and may ask for your GitHub password or a two-factor code first.
-
GitHub sends you back to Helm, which shows a page titled GitHub connected with this message:
Connected the GitHub account your-org to this Helm organization. Helm can now use the Helm GitHub App for it, and CI starts within a minute.Click Back to Organization Settings.
- The Connect GitHub card now shows "Connected to
your-org", the GitHub account ID, and a CI enabled label. That label means Helm has recorded the account's numeric GitHub ID, which Helm needs before it runs CI jobs for the account.
Helm starts each connection with a one-time value that is valid for 15 minutes and works only in the browser and Helm account that started it. If you wait longer, or switch browsers, start again with Connect GitHub.
The GitHub Owner field
The GitHub Owner field at the top of the same page holds the GitHub account
that owns your repositories. Helm puts it in front of every repository name a project lists,
so my-backend means your-org/my-backend. If the field is empty when
you connect, Helm fills it in with the account you connected. If it already holds a different
account, Helm leaves it alone and says so on the GitHub connected page. To
change it, type the account name in GitHub Owner and click
Save Changes. The page shows "Settings saved successfully."
If the App is already installed on the account
Someone may have installed the App already: a GitHub organization owner on their own, or you with the Install the Helm GitHub App button described in Step 3. Installing the App on GitHub does not link it to Helm. To link it:
- On the GitHub tab of Company settings, click Connect an existing installation.
- GitHub asks you to sign in and allow Helm Code App to confirm who you are. Accept.
- Helm shows a page titled Connect GitHub that lists each GitHub account where the App is installed and you can reach it, with its GitHub account ID. The list is valid for 15 minutes.
- Click Connect next to the account you want. Helm shows GitHub connected.
Step 2 — When a GitHub organization owner must approve the App
Only an owner of a GitHub organization can install an App on it. If you are a member but not an owner, GitHub turns your install into a request to the owners.
- Follow Step 1. On GitHub's install page you send a request instead of installing.
-
GitHub sends you back to Helm, which shows Waiting for approval:
Waiting for your GitHub organization owner to approve the Helm GitHub App. When they have approved it, click Finish connecting.The same note, with a Finish connecting button, stays on the Connect GitHub card in Company settings for 30 days.
- Ask an owner of the GitHub organization to approve the request. GitHub notifies the owners. An owner approves it from the GitHub organization's Settings, under GitHub Apps, where pending install requests are listed, and chooses the repositories there.
-
When the owner approves, GitHub shows them a Helm page titled Helm GitHub App approved:
The Helm GitHub App was approved. The person who asked for it can now finish connecting in Helm: Organization Settings, GitHub tab, Finish connecting. You can close this page.The owner does not need a Helm account, and nothing more is needed from them. That visit does not link anything.
- Back in Helm, open Company settings → GitHub and click Finish connecting. GitHub asks you to sign in, then sends you back.
- If you can reach one installation of the App, Helm links it and shows GitHub connected. If you can reach several, Helm lists them and you click Connect next to the right one. If the owner has not approved yet, Helm shows Still waiting for approval; click Finish connecting again after they have.
One GitHub account, one Helm organization
Helm links each GitHub account to exactly one Helm organization. This stops another Helm customer from typing your GitHub account into their settings and reading your code. If the account is already linked to a different Helm organization, even one where the App was later uninstalled, Helm refuses and shows:
This GitHub account is already connected to another Helm organization. Contact support.
Nothing is changed. To move a GitHub account to another Helm organization, contact Helm support. One Helm organization can link several GitHub accounts: click Connect another account or reconnect for each one.
Step 3 — Check which repositories Helm can read
The Helm GitHub App card, below the Connect GitHub card on the same page, lists every repository that your projects name in their GitHub Repos setting, the projects that use it, and whether Helm can read it:
- Helm can read it — everything is in place.
- Helm cannot read it — the App is not installed on the account, or it is installed but the repository is not selected. The card says which, and what to do.
- Owner not linked — the repository belongs to a GitHub account that is not linked to this Helm organization. Connect that account (Step 1).
- Not checked — Helm could not ask GitHub just now. The card says "Helm could not check repository access right now. Try again in a minute."
The card also says whether the account in GitHub Owner is linked. Its Install the Helm GitHub App button opens GitHub's install page in a new tab. That button only installs; afterwards, link the account with Connect an existing installation.
Add a repository later
When you start a new app repository, give the App access to it on GitHub, then add it to the project in Helm (Step 4). You can skip the GitHub part if you chose All repositories.
-
On GitHub, open the App's settings:
- For a GitHub organization: open the organization, click Settings, then GitHub Apps, and click Configure next to Helm Code App.
- For a personal account: click your profile picture, then Settings, Applications, the Installed GitHub Apps tab, and Configure next to Helm Code App.
- Under Repository access, add the repository to Only select repositories, and click Save.
- In Helm, reload Company settings → GitHub. Once a project lists the repository, the Helm GitHub App card shows Helm can read it.
Step 4 — Choose the project's repositories
Each project lists its repositories in its GitHub Repos setting. Helm uses the list to match a workflow's OIDC token to the project, and to know which closed pull requests and deleted branches belong to the project. List the backend repository and every repository whose workflows ask for previews or upload builds.
- Open your project in Helm, click Settings in the sidebar, then GitHub (under Shared).
- Find the Choose repositories card. It lists the repositories the Helm GitHub App can see in your GitHub Owner account, as checkboxes. Tick the ones this project uses.
-
To add a repository of another linked GitHub account, or one the list does not show, type it in Other repositories (typed by hand). Separate names with commas. A bare name such as
my-backenduses the GitHub Owner account. For another account, write the owner too:my-backend, my-ios-app, other-account/shared-api - Click Save repositories. Helm shows "Repositories saved." and reloads the page, and the GitHub Repos field above the card shows the new list.
Saving replaces the whole list with what is ticked and typed, so a repository you untick is removed. You can also pick repositories when you create a project: the GitHub repositories (optional) field on the new project page shows the same list.
Step 5 — Choose the backend repository
The backend repository is the one Helm builds for every preview, whichever repository asked.
- Open your project's Settings, then Preview Environments (under Build).
-
In Backend Repo URL, enter the repository's GitHub address in one of these forms:
https://github.com/your-org/your-backend your-org/your-backend - Click Save Changes. Helm checks that its GitHub App can read the repository, then the page shows "Settings saved successfully."
The backend repository's GitHub account must be linked to your Helm organization, and the App must be able to read the repository. Otherwise Helm refuses to save the URL and says why. The other settings on this tab are described in Set Up PR Previews.
Step 6 — Let GitHub Actions call Helm
A workflow asks for a preview by calling Helm's API, and each call must prove which project it
is for. There are two ways. Both send the header
Authorization: Bearer <token>. Both need GitHub connected (Steps 1 to 5),
because Helm reads the backend repository through the App either way.
| OIDC token (recommended) | Project API key | |
|---|---|---|
| Secret stored in GitHub | None | HELM_API_TOKEN in each repository |
| How long it lasts | A few minutes; ask for a new one before each call | Until you delete it |
| Which project | The one whose GitHub Repos lists the workflow's repository | The project the key belongs to |
| Workflow permission | id-token: write | None |
Option A: a GitHub Actions OIDC token
An OIDC token is a short note, signed by GitHub, that names the repository, workflow,
branch and run that asked for it. (OIDC stands for OpenID Connect, the standard the note
follows.) A job can ask GitHub for one only when the workflow grants
permissions: id-token: write. Ask for the audience https://app.helmcode.dev;
the audience says which service the note is meant for.
https://helmcode.dev, and the API also answers at https://helmcode.dev/api/. New set-ups use https://app.helmcode.dev. Workflows, apps and connectors that already use https://helmcode.dev keep working; you do not need to change them.
Helm accepts the token only when all of these are true:
- GitHub signed it, and it was issued by
https://token.actions.githubusercontent.com. - Its audience is exactly
https://app.helmcode.devorhttps://helmcode.dev. - It has not expired. Helm allows 60 seconds of clock difference.
- The GitHub account that owns the repository is linked to your Helm organization, and the account's numeric GitHub ID matches the one Helm recorded.
- A project in that Helm organization lists the repository in GitHub Repos. If several do, the request names one in
project. - The project has the Build module.
A preview created with an OIDC token can afterwards be read or torn down only with an OIDC token from the same repository, or with the project's API key.
This complete workflow asks for a preview when a pull request opens or changes, waits until it is
ready, runs a test against it, and tears it down at the end, even if the test failed. It is the
same workflow as in
Set Up PR Previews.
Save it as .github/workflows/pr-preview.yml, change platform to
ios, android or backend to match the repository, and
replace the test job with your own.
name: PR preview
on:
pull_request:
permissions:
id-token: write # lets the jobs ask GitHub for an OIDC token
contents: read
env:
HELM_API_URL: https://app.helmcode.dev/api
jobs:
preview:
runs-on: ubuntu-latest
outputs:
preview_id: ${{ steps.create.outputs.preview_id }}
preview_url: ${{ steps.wait.outputs.preview_url }}
steps:
- name: Ask Helm for a preview
id: create
env:
BRANCH: ${{ github.head_ref || github.ref_name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
TOKEN=$(curl -s -H "Authorization: Bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://app.helmcode.dev" \
| python3 -c "import sys,json; print(json.load(sys.stdin)['value'])")
BODY=$(python3 -c "import json,os; print(json.dumps({'platform': 'ios', 'branch': os.environ['BRANCH'], 'pr_number': int(os.environ['PR_NUMBER'] or 0) or None}))")
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST "${HELM_API_URL}/previews/" \
-H "Authorization: Bearer ${TOKEN}" -H "Content-Type: application/json" -d "${BODY}")
CODE=$(echo "$RESPONSE" | tail -1); JSON=$(echo "$RESPONSE" | sed '$d')
[ "$CODE" = "201" ] || { echo "::error::Preview request failed (HTTP $CODE): $JSON"; exit 1; }
echo "preview_id=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")" >> "$GITHUB_OUTPUT"
- name: Wait until the preview is ready
id: wait
env:
PREVIEW_ID: ${{ steps.create.outputs.preview_id }}
run: |
for i in $(seq 1 120); do
TOKEN=$(curl -s -H "Authorization: Bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://app.helmcode.dev" \
| python3 -c "import sys,json; print(json.load(sys.stdin)['value'])")
JSON=$(curl -s -H "Authorization: Bearer ${TOKEN}" "${HELM_API_URL}/previews/${PREVIEW_ID}/")
STATUS=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('status') or '')")
echo "Preview status: ${STATUS}"
if [ "$STATUS" = "ready" ]; then
echo "preview_url=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin)['base_url'])")" >> "$GITHUB_OUTPUT"
exit 0
fi
if [ "$STATUS" = "failed" ] || [ "$STATUS" = "destroyed" ]; then
echo "::error::Preview ${STATUS}: $(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('error_message') or '')")"
exit 1
fi
sleep 20
done
echo "::error::The preview was not ready after 40 minutes"; exit 1
test:
needs: preview
runs-on: ubuntu-latest
steps:
- name: Check the preview answers
env:
PREVIEW_URL: ${{ needs.preview.outputs.preview_url }}
run: curl -fsS "${PREVIEW_URL}/" > /dev/null
teardown:
needs: [preview, test]
# Run even when a job before it failed, but only when a preview was created.
if: ${{ always() && needs.preview.outputs.preview_id != '' }}
runs-on: ubuntu-latest
steps:
- name: Tear down the preview
env:
PREVIEW_ID: ${{ needs.preview.outputs.preview_id }}
run: |
TOKEN=$(curl -s -H "Authorization: Bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
"${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://app.helmcode.dev" \
| python3 -c "import sys,json; print(json.load(sys.stdin)['value'])")
RESPONSE=$(mktemp)
CODE=$(curl -s -o "$RESPONSE" -w "%{http_code}" -X POST \
"${HELM_API_URL}/previews/${PREVIEW_ID}/teardown/" -H "Authorization: Bearer ${TOKEN}")
echo "Teardown answered HTTP ${CODE}"
# A pinned preview is kept on purpose: Helm answers 409 preview_pinned.
if [ "$CODE" = "409" ] && grep -q '"preview_pinned"' "$RESPONSE"; then
echo "Preview is pinned; left running"
exit 0
fi
[ "$CODE" = "200" ]
If several of your projects list the same repository, add the project's short name to the
request body, for example 'project': 'your-project' next to
'platform'. The request body fields are described in
Set Up PR Previews.
Option B: the project API key, stored as a repository secret
Use the API key when you cannot give the workflow id-token: write, or when the call
does not come from GitHub Actions. The key belongs to one project, so Helm does not need
GitHub Repos to find the project. You still need Steps 1 to 5, because Helm
reads the backend repository through the App, and automatic teardown uses
GitHub Repos.
- In Helm, open your project's Settings and click API Keys.
- In Key Name, type a name such as
GitHub Actions, and click Generate Key. - The API Key Created window shows the key once. Copy it now; Helm cannot show it again.
- On GitHub, open the repository, click Settings, then Secrets and variables → Actions, and click New repository secret.
- In Name, enter
HELM_API_TOKEN. In Secret, paste the key. Click Add secret. - Repeat the secret for each repository whose workflows call Helm.
- Save this workflow as
.github/workflows/pr-preview.yml. It does the same as the OIDC workflow, with the key in place of the token.
name: PR preview
on:
pull_request:
permissions:
contents: read
env:
HELM_API_URL: https://app.helmcode.dev/api
jobs:
preview:
runs-on: ubuntu-latest
outputs:
preview_id: ${{ steps.create.outputs.preview_id }}
preview_url: ${{ steps.wait.outputs.preview_url }}
steps:
- name: Ask Helm for a preview
id: create
env:
HELM_API_TOKEN: ${{ secrets.HELM_API_TOKEN }}
BRANCH: ${{ github.head_ref || github.ref_name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
BODY=$(python3 -c "import json,os; print(json.dumps({'platform': 'ios', 'branch': os.environ['BRANCH'], 'pr_number': int(os.environ['PR_NUMBER'] or 0) or None}))")
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST "${HELM_API_URL}/previews/" \
-H "Authorization: Bearer ${HELM_API_TOKEN}" -H "Content-Type: application/json" -d "${BODY}")
CODE=$(echo "$RESPONSE" | tail -1); JSON=$(echo "$RESPONSE" | sed '$d')
[ "$CODE" = "201" ] || { echo "::error::Preview request failed (HTTP $CODE): $JSON"; exit 1; }
echo "preview_id=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")" >> "$GITHUB_OUTPUT"
- name: Wait until the preview is ready
id: wait
env:
HELM_API_TOKEN: ${{ secrets.HELM_API_TOKEN }}
PREVIEW_ID: ${{ steps.create.outputs.preview_id }}
run: |
for i in $(seq 1 120); do
JSON=$(curl -s -H "Authorization: Bearer ${HELM_API_TOKEN}" "${HELM_API_URL}/previews/${PREVIEW_ID}/")
STATUS=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('status') or '')")
echo "Preview status: ${STATUS}"
if [ "$STATUS" = "ready" ]; then
echo "preview_url=$(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin)['base_url'])")" >> "$GITHUB_OUTPUT"
exit 0
fi
if [ "$STATUS" = "failed" ] || [ "$STATUS" = "destroyed" ]; then
echo "::error::Preview ${STATUS}: $(echo "$JSON" | python3 -c "import sys,json; print(json.load(sys.stdin).get('error_message') or '')")"
exit 1
fi
sleep 20
done
echo "::error::The preview was not ready after 40 minutes"; exit 1
test:
needs: preview
runs-on: ubuntu-latest
steps:
- name: Check the preview answers
env:
PREVIEW_URL: ${{ needs.preview.outputs.preview_url }}
run: curl -fsS "${PREVIEW_URL}/" > /dev/null
teardown:
needs: [preview, test]
# Run even when a job before it failed, but only when a preview was created.
if: ${{ always() && needs.preview.outputs.preview_id != '' }}
runs-on: ubuntu-latest
steps:
- name: Tear down the preview
env:
HELM_API_TOKEN: ${{ secrets.HELM_API_TOKEN }}
PREVIEW_ID: ${{ needs.preview.outputs.preview_id }}
run: |
RESPONSE=$(mktemp)
CODE=$(curl -s -o "$RESPONSE" -w "%{http_code}" -X POST \
"${HELM_API_URL}/previews/${PREVIEW_ID}/teardown/" -H "Authorization: Bearer ${HELM_API_TOKEN}")
echo "Teardown answered HTTP ${CODE}"
# A pinned preview is kept on purpose: Helm answers 409 preview_pinned.
if [ "$CODE" = "409" ] && grep -q '"preview_pinned"' "$RESPONSE"; then
echo "Preview is pinned; left running"
exit 0
fi
[ "$CODE" = "200" ]
Build uploads use the same two options
The build upload API at https://app.helmcode.dev/api/builds/ accepts the same OIDC token
or project API key, with the same checks. A workflow that already asks for previews with an OIDC
token can upload builds without a secret. See
Upload Builds from CI.
What Helm does with GitHub events
The Helm GitHub App receives GitHub's events for the repositories it can read, so you do not add a webhook to any repository. Helm acts on these:
- A pull request is closed or merged. Helm tears down that pull request's previews in every project that lists the repository in GitHub Repos.
- A branch is deleted. Helm tears down that project's previews that were asked for by branch name, without a pull request number, for that branch.
- The App is uninstalled or suspended on the GitHub account. Helm marks the link inactive. See the next section.
- A suspended App is unsuspended. Helm marks the link active again, with nothing for you to do.
A repository that is not in any project's GitHub Repos is ignored. Previews also end when their lifetime runs out; see Preview Lifecycle.
Disconnect GitHub or remove access
Helm has no disconnect button. You remove access on GitHub, and GitHub tells Helm.
Stop Helm reading one repository
- Open the App's settings on GitHub, as in "Add a repository later" above.
- Under Repository access, remove the repository and click Save.
- In Helm, untick it on the project's Choose repositories card and click Save repositories.
If the removed repository is the backend repository, new previews fail with
github_app_not_installed, and the Helm GitHub App card shows
Helm cannot read it.
Disconnect the whole GitHub account
- Open the App's settings on GitHub, as in "Add a repository later" above.
- At the bottom of the page, click Uninstall to remove the App, or Suspend to pause it, and confirm.
- In Helm, the Connect GitHub card shows the account as inactive, for example "
your-orgis inactive. The Helm GitHub App was uninstalled on 3 Nov 2026, 14:05 UTC. Helm does not use the Helm GitHub App or run CI for this account until you reconnect it."
Once the link is inactive, this stops working for every repository of that account:
- New previews are refused with
github_owner_not_linked, and Rebuild is refused. - Requests with an OIDC token from its repositories are refused with
no_matching_project. - Previews are no longer torn down when a pull request closes. They still end when their lifetime runs out, or when you tear them down.
- The Choose repositories card no longer lists the account's repositories; it asks you to connect GitHub and offers only the box for typed names. The GitHub Actions panel on the dashboard says "GitHub not connected".
- Helm stops running CI jobs for the account.
Previews that are already running keep running. To connect the account again after an
uninstall, click Reconnect next to it on the Connect GitHub
card and install the App again. Helm shows "Reconnected the GitHub account
your-org." After a suspension, click Unsuspend on GitHub instead;
Helm reconnects the account by itself.
To stop a workflow that uses an API key, click Revoke next to the key on the
project's API Keys tab, and delete the HELM_API_TOKEN secret on GitHub.
Troubleshooting
"This GitHub account is already connected to another Helm organization. Contact support."
Another Helm organization has linked this GitHub account, perhaps an old one of yours. Helm links each account to one organization only, and changed nothing. Contact Helm support to move it.
"This request is more than 15 minutes old." or "This request was started in a different browser or session."
The connection must finish within 15 minutes, in the same browser and Helm account that clicked Connect GitHub. Start again from Company settings → GitHub. The same applies to "This request was already used." and "This request was started by a different Helm user."
"GitHub did not send a sign-in code, so Helm cannot check which account you installed the App on."
GitHub installed the App but did not confirm who you are, so Helm linked nothing. On the GitHub tab of Company settings, click Connect an existing installation and pick the account. The same fix applies to "GitHub did not say which installation was made."
"Your GitHub account cannot access any installation of the Helm GitHub App. Install it with Connect GitHub first."
You clicked Connect an existing installation, but the GitHub account you signed in with cannot reach an installation of the App. Install it with Connect GitHub, or sign in to GitHub as a member of the organization where it is installed.
"Still waiting for approval"
You clicked Finish connecting before a GitHub organization owner approved the request, or the GitHub account you signed in with cannot reach the installation. Ask the owner to approve it, then click Finish connecting again.
"GitHub sign-in was cancelled or refused, so nothing was linked."
You, or GitHub, cancelled the sign-in. Start again with Connect GitHub.
"Helm's link for "your-org" records a different GitHub account ID from the account you connected"
The name your-org now belongs to a different GitHub account from the one Helm linked
earlier, for example after a rename. Helm changed nothing. Contact Helm support. An OIDC request
in the same situation answers 403 with github_owner_id_mismatch.
"Connecting GitHub from the portal is not available right now."
Connect GitHub is switched off on Helm's side. Contact Helm support to link your GitHub account.
The Choose repositories card says "Helm could not load the repositories the Helm GitHub App can see for your-org. Type the repository names instead."
Helm could not ask GitHub for the list. Type the names in Other repositories (typed by hand) and click Save repositories, or reload the page later. If the card says "The Helm GitHub App cannot see any repositories in your-org", select repositories on GitHub (see "Add a repository later").
The preview request answers 422 with github_owner_not_linked
The backend repository's GitHub account is not linked to your Helm organization. The message reads:
Helm will not use the Helm GitHub App for the GitHub account "your-org" because it is not linked to your Helm organization. An Owner or Admin of your Helm organization can link it with Connect GitHub in Organization Settings, GitHub tab, or contact Helm support.
Follow Step 1 for that account. If the Connect GitHub card shows the account as inactive, click Reconnect.
The preview fails with github_app_not_installed
The account is linked, but the App cannot read the backend repository. The message starts with "The Helm GitHub App cannot read your-org/your-backend." Add the repository to the App's Repository access on GitHub (see "Add a repository later").
The request answers 401 with invalid_oidc_token
The message says why. The common ones:
- "The token has expired." — ask for a new token right before each request, in the same job.
- "The token audience must be one of: https://helmcode.dev, https://app.helmcode.dev." — add
&audience=https://app.helmcode.devto the token request, with no slash at the end. - "The token was signed with an unknown key." or "The token issuer must be https://token.actions.githubusercontent.com." — the token did not come from GitHub Actions. Ask for it with
ACTIONS_ID_TOKEN_REQUEST_URL, as the workflow above does.
The token step fails before Helm is called
If the step stops at the TOKEN=$(...) line with a Python error such as
JSONDecodeError or KeyError: 'value', GitHub did not give the job an
OIDC token. Add this block at the top level of the workflow, or under the job, and run it again:
permissions:
id-token: write
contents: read
GitHub also refuses OIDC tokens to runs from pull requests opened from a fork.
The request answers 403 with no_matching_project
No Helm project can take requests from your-org/your-ios-app. The GitHub account "your-org" must be linked to your Helm organization (Connect GitHub in Organization Settings, or contact Helm support), and a project must list the repository in GitHub Repos.
Check that the Connect GitHub card shows the account as connected, and add the
repository on the project's Choose repositories card (Step 4). A bare name in
GitHub Repos uses the GitHub Owner account, so if the
repository belongs to another account, write it as owner/name.
The request answers 409 with project_required
Several of your projects list the repository. The message lists them, for example
"Several Helm projects list your-org/your-ios-app. Send "project" with one of: ...". Add
"project": "your-project" to the request body.
The request answers 403 with module_not_entitled
"Project is not entitled to this module." The project does not have the Build module. Contact Helm support.
The status or teardown request answers 401 with auth_required, or 403 with forbidden
A preview created with an OIDC token can be read or torn down only with an OIDC token from the
same repository, or with the project's API key. "This preview was created with an OIDC token;
send an OIDC token for its repository or the project API key." means the request had no
Authorization header. "This OIDC token may not act on this preview." means the token
came from another repository.
An API key request answers 403 with "Invalid API key"
The key was revoked or mistyped. Generate a new key on the API Keys tab and
replace the HELM_API_TOKEN secret. "Missing or invalid Authorization header"
(401) means the secret is empty in that repository, or the header is not written as
Authorization: Bearer <key>.
A preview was not torn down when its pull request closed
Check that the repository where the pull request was closed is in the project's GitHub Repos, that the App can read it, and that the account is not inactive on the Connect GitHub card. A preview asked for with only a branch name is torn down when that branch is deleted, not when a pull request closes.