Rerun tests on GitHub Actions
Configure the GitHub Actions integration so you can rerun failed tests from the Test Reporting & Analytics dashboard.
BrowserStack Test Reporting & Analytics lets you rerun failed tests directly from the dashboard after you integrate GitHub Actions. This removes the need to manually trigger workflow runs.
Before you proceed, complete the main setup to rerun failed tests: Rerun failed tests with Test Reporting & Analytics.
Configure the GitHub Actions integration
Each user who wants to trigger reruns must complete this setup:
- Go to the CI/CD integration page and click Connect under GitHub Actions.
- Sign in with OAuth, or create a GitHub personal access token (classic). To create a token, do the following in GitHub:
- Go to Settings > Developer settings > Personal access tokens > Tokens (classic) > Generate new token.
- Set an expiry.
- Grant only the
repoandworkflowscopes needed to trigger workflow runs.
- Enter the token in the form and click Submit.
- Review the token scopes and remove any you don’t need.
- Confirm that the BrowserStack app is installed in your repository. If the app isn’t installed, see GitHub’s guide to installing GitHub Apps.
- In your target repository workflow file, confirm that the workflow has a
workflow_dispatchtrigger so that BrowserStack can pass the required inputs during a rerun.
Trigger reruns
After you complete the CI configuration, follow these steps to rerun failed test cases:
- Go to the Test listing to view failed test cases.
- Hover over the failed test name to display the action icons.
- Click the rerun icon to open the rerun options.

Related topics
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!