Skip to main content
Automatically trigger Bugster tests from your GitHub workflows using the official Bugster GitHub Action. Perfect for running tests after deployments or on pull requests.

Overview

The Bugster GitHub Action sends deployment notifications to Bugster Cloud directly from your GitHub workflows. It uses the same webhook API as our custom integrations but provides a simpler, GitHub-native experience.

Bugster.dev GitHub Action

Official GitHub Action available in the GitHub Marketplace

Prerequisites

You must have the Bugster GitHub App installed and connected to your repository before using GitHub Actions integration.
Visit your Bugster Dashboard → Project Settings → GitHub Integration to install the GitHub App if you haven’t already.

Quick Setup

1

Add Bugster API key to secrets

In your GitHub repository, go to Settings > Secrets and variables > Actions and add:
  • Name: BUGSTER_API_KEY
  • Value: Your Bugster API key (from Settings > API Keys in your Bugster dashboard)
Never commit your API key directly to your workflow file. Always use GitHub secrets.
2

Get your project credentials

From your Bugster dashboard, collect:
  • Organization ID: Settings > Organization
  • Project ID: Project Settings > General
Both values are also available in Project Settings > Integrations for convenience.
3

Add the action to your workflow

Create or update your .github/workflows file to include the Bugster action:
.github/workflows/deploy.yml
Replace the organization_id and project_id with your actual values from the Bugster dashboard.

Action Inputs

Required Parameters

string
required
Your Bugster API key. Store this in secrets.BUGSTER_API_KEY for security.
string
required
Your Bugster organization ID from the dashboard.
string
required
Your Bugster project ID from the dashboard.
string
required
URL where your application is deployed and accessible for testing.

Optional Parameters

string
default:"success"
Deployment status. Options: success, in_progress, cancelled, failed, error. Bugster only runs tests when set to success.
string
default:"${{ github.sha }}"
Git commit SHA. Automatically filled from GitHub context if not provided.
string
default:"${{ github.ref_name }}"
Git branch name. Automatically filled from GitHub context if not provided.
string
default:"https://api.bugster.app"
Base API URL. Useful for testing or custom deployments.
number
default:"60"
Request timeout in seconds.

Action Outputs

string
HTTP status code returned by the Bugster API.
string
Response body returned by the API (truncated for logging).

Common Use Cases

Basic Pull Request Testing

Test every pull request after deployment:
.github/workflows/pr-test.yml

Multi-Environment Testing

Test different environments with different configurations:

Conditional Testing

Only run tests under specific conditions:
.github/workflows/conditional.yml

Deployment State Tracking

Track deployment progress with different states:
.github/workflows/deployment-tracking.yml

Vercel Integration

.github/workflows/vercel-bugster.yml

Netlify Integration

.github/workflows/netlify-bugster.yml

Troubleshooting

  • Verify your BUGSTER_API_KEY secret is set correctly in repository settings
  • Check that the API key hasn’t expired in your Bugster dashboard
  • Ensure the API key has proper permissions for the organization and project
  • Confirm your environment_url is publicly accessible
  • Verify your repository has the .bugster configuration folder
  • Check that deployment_state is set to "success" (default)
  • Ensure your organization_id and project_id are correct
  • Increase the timeout_seconds parameter (default is 60)
  • Check if the Bugster API is accessible from GitHub Actions
  • Verify your network connectivity and API endpoint
Error: “Repository does not have .bugster configuration folder”Run bugster quickstart --api-key=YOUR_API_KEY in your repository and commit the generated .bugster/ folder.

Real-World Examples

Check out these working implementations:

Next Steps

Custom Integration

Learn about the underlying webhook API for custom implementations

Test Management

Configure and manage your Bugster test suite