> For the complete documentation index, see [llms.txt](https://docs.getantidote.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getantidote.com/welcome-to-antidote/integrations/github-actions/troubleshooting.md). Agents can also search and read this documentation through its [MCP server](https://docs.getantidote.com/~gitbook/mcp).

# Troubleshooting

Fix common setup and runtime issues.

Use these checks first when a workflow starts but the results are not what you expect.

### Antidote didn't test after an `@antidoteapp` comment

The comment must start with `@antidoteapp`, and its author needs write access to the repository. Antidote reacts with 👀 when it takes the request. If it can't start the test, it replies on the pull request:

* **Waiting for a build:** the preview action has not recorded this commit's build yet. Antidote tests it once the workflow records it.
* **No build arrived:** the request expired before a build was recorded. Comment `@antidoteapp` again after the workflow has run.
* **Can't test:** the reply says what to fix, such as connecting the repository to the product in Antidote. Fix it, then comment `@antidoteapp` again.

### No PR comment or check run appears

Install the Antidote GitHub App and link it to your Antidote organisation. An org admin opens **Settings → Integrations**, selects **Connect** on the **GitHub** card under **Source control & CI/CD** and selects **Install on GitHub**. If the App is already installed on your GitHub organisation, select **Link existing install** instead. An App installed straight from GitHub is not linked, and Antidote posts no PR comments or check runs until it is.

Antidote reads the pull request through the App, so without it the pull request is not tested and the step logs why. The App posts the comment and the check run once someone comments `@antidoteapp` on the pull request.

### npx was not found on this runner

The actions need Node 22.4 or newer on a Linux or macOS runner. Add `actions/setup-node@v4` with `node-version: 22` before the Antidote step.

### Nothing to sign in with

The action can sign in in three ways. Pass `api-key: ${{ secrets.PLATFORM_API_KEY }}`, give the job `permissions: id-token: write` so it signs in through the Antidote GitHub App, or pass `service-identity`, the ID of a service identity an org admin creates in **Settings**. Pull requests from forks and Dependabot get no secret and no token. See [Signing in](https://docs.getantidote.com/welcome-to-antidote/integrations/github-actions/configuration-reference.md#signing-in).

### The environment action does not test pull requests

The `environment` action records releases on the product's environments. Run it on `push`, `schedule` or `workflow_dispatch`, and use the [Quickstart: preview action](https://docs.getantidote.com/welcome-to-antidote/integrations/github-actions/quickstart-preview-action.md) for pull requests.

### Add Preview deployments in Product settings → Environments before using the preview action

Before the first run, an org admin opens **Product settings** (the cog next to the product menu), goes to **Environments**, selects **Add environment**, sets **Type** to **Preview deployments** and selects **Create**. All pull-request previews share this one slot.

### The preview action cannot find a preview URL

Confirm that your hosting provider creates a GitHub Deployment for the pull request.

If it does not, set `preview-url-source: comments` and set `preview-comment-author-logins` to your deployment bot, such as `vercel[bot]`.

If you already know the URL, pass `exploration-url` directly.

### The workflow does not trigger

Place the workflow file under `.github/workflows/`.

Check that the `branches:` list matches the branch you actually merge into or deploy from.

### Secrets not found or pull requests from forks fail

Pull requests from forks cannot read repository secrets.

Antidote previews require a pull request from a branch in the same repository.

### The run cannot reach the app

If your app sits behind a firewall, WAF, or bot manager, allowlist Antidote's egress IPs.

Use [Firewall & WAF Allowlisting](https://docs.getantidote.com/welcome-to-antidote/integrations/firewall-and-waf-allowlisting.md) to configure the allowlist.

### Could not derive a release label

{% hint style="warning" %}
This is a warning, and the step continues. Antidote names the release by its short commit SHA. To name it from your tags, add `actions/checkout@v4` with `fetch-depth: 0` before the Antidote step so `git describe` can see them, or pass `release-label`.
{% endhint %}

### No release label for this run

The run has no commit or branch to name the release, as on a scheduled, manual or dispatched run, and your `release-label-from` source gave no label. Pass `release-label`, such as the version you are releasing.

### Release label was not recorded: this commit already has a release

Each commit is one release, and its first name is kept. To change it, an org admin renames it in [Releases](https://docs.getantidote.com/welcome-to-antidote/dashboard/releases.md) in the Antidote dashboard.

### The step times out waiting for the deployment

Check that the environment URL returns the pushed commit in the header named by `wait-commit-header`, on the path set by `wait-commit-path`.

### Product not found or missing base URL

Check that `product-id` names your product. The preview action also needs the product's base URL, even when it tests a preview URL. Set the base URL in the product's settings in the Antidote dashboard.

### Product has no environment named 'staging'

The `environment` input must match an environment declared in **Product settings → Environments**. The error lists the declared names. Leave `environment` out to use the product's default environment.

### The Antidote Bot GitHub App is not installed on owner/repo

An org admin installs it from **Settings → Integrations → Source control & CI/CD**. The step still passes. Once it is installed, comment `@antidoteapp` on the pull request.

### The Antidote Bot GitHub App is installed on owner/repo but not linked to this organisation

An org admin selects **Connect** on the **GitHub** card in **Settings → Integrations**, then **Link existing install**. If another organisation linked it, that organisation unlinks it first.

### A discovery is already running on another environment of this product

A product runs one exploration at a time. Run again once it finishes.

### Read next

* [CI integration with GitHub Actions](https://docs.getantidote.com/welcome-to-antidote/integrations/github-actions/ci-integration-with-github-actions.md)
* [Configuration reference](https://docs.getantidote.com/welcome-to-antidote/integrations/github-actions/configuration-reference.md)
