GitHub Actions Integration

Connect GitHub Actions to view CI build timelines, trigger workflows, and deep-link sessions to their originating CI run.

The GitHub Actions integration connects your CI pipeline to the TestRelic session workspace, enabling build timeline visualization, workflow triggering, and bidirectional deep linking between test sessions and CI runs.

GitHub Actions run
TestRelic test run
Session workspace CI timeline

What this integration enables

  • CI build timeline — A visual timeline of your GitHub Actions workflow steps, displayed in the session workspace alongside test results.
  • Build links — Each test run card in the dashboard shows a direct link to the GitHub Actions run that triggered it.
  • Workflow trigger — Trigger a GitHub Actions workflow directly from the TestRelic platform (useful for re-running a failed CI check without leaving the platform).
  • Run metadata — Branch, commit SHA, workflow name, and run number are surfaced in the run list and session detail.

Connecting GitHub Actions

  1. Navigate to Settings → Integrations and open the Marketplace tab.
  2. Click Connect on the GitHub Actions card.
  3. In the connection sheet, provide:
    • Owner (org or user) — your GitHub organization or username (e.g. acme-corp).
    • Personal Access Token — a GitHub fine-grained personal access token.
  4. Click Test Connection, then Connect to store the connection.
  5. Map each TestRelic repository to its GitHub repository: open the repository, go to its Integrations tab → GitHub Actions, pick the GitHub Repository and save. Runs and logs resolve through that mapping.

Token permissions required

Create a fine-grained token under GitHub → Settings → Developer settings → Personal access tokens with, for the repositories you want to use:

  • Actions: read and write — to list workflow runs and logs, and to dispatch workflows
  • Contents: read — to read the repository

GitHub Actions console

Once connected, the integration appears on the Connected tab. Open console shows your Workflows, recent runs with their Jobs and steps and logs, the repositories the token can see, and View on GitHub links. Run workflow dispatches a workflow on a Branch or tag you choose.

CI build timeline

When the integration is connected and a GitHub repository is mapped, the GitHub Actions section of the repository's Integrations tab, and the GitHub Actions tab in the Session Workspace (see the Cloud Platform section) where enabled, render a step-by-step CI build timeline:

  • Each workflow job is displayed as a timeline segment.
  • Step names, durations, and statuses are shown.
  • A link to the full GitHub Actions run opens in a new tab.

Triggering workflows

From the repository's Integrations tab → GitHub Actions, use Trigger Build (pick the Branch, optional pipeline name and environment variables) to dispatch a workflow run on GitHub Actions; the console's Run workflow does the same. This uses the workflow dispatch event.

Actions write permission required

Workflow triggering requires Actions: read and write on your GitHub token. Without write access, GitHub rejects the dispatch.

Auto-detected CI metadata

Even without the integration connected, TestRelic auto-detects GitHub Actions metadata from the reporter:

  • Workflow name and run number (from GITHUB_WORKFLOW and GITHUB_RUN_NUMBER environment variables)
  • Commit SHA (GITHUB_SHA)
  • Branch (GITHUB_REF_NAME)

This metadata is displayed in the run list and session detail automatically. The integration adds the build timeline and workflow trigger capabilities on top.

Was this page helpful?

On this page