ci: skip Cross-Browser Tests on Dependabot PRs - #5914
Merged
Conversation
Dependabot PRs run in a restricted GitHub Actions context where repository secrets (BROWSERSTACK_USERNAME, BROWSERSTACK_ACCESS_KEY) are not passed. The setup-env action fails with "Input required and not supplied: username", failing the E2E Gate on every Dependabot PR. Add a job-level condition to skip the entire cross-browser job when the actor is dependabot[bot]. The test coverage provided by BrowserStack is not relevant to dependency bumps in lock files and CI scanner requirements. No-PRD: CI infrastructure fix, no product behaviour change. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LAkDSjSE565ZtADVdfRnie
✅ Drift Bot (ClawMetry): no drift detectedDrift Bot analyzed the changed files against this project's blueprints and requirements and found no drift. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every Dependabot PR fails the E2E Gate because BrowserStack secrets (
BROWSERSTACK_USERNAME,BROWSERSTACK_ACCESS_KEY) are not passed to Dependabot workflow runs. GitHub's security model intentionally withholds repository secrets from Dependabot. Thebrowserstack/github-actions/setup-envaction then fails immediately:Observed failing on PRs #5909 and #5910 (and presumably #5911, #5912).
Fix
Add a job-level
if: github.actor != 'dependabot[bot]'condition to thecross-browserjob. The job is skipped entirely for Dependabot PRs. BrowserStack coverage is not relevant to lock-file bumps and CI scanner requirement pins.What is not changed
browserstacklabel: unchangedNo-PRD: CI infrastructure fix, no product behaviour change.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LAkDSjSE565ZtADVdfRnie
Generated by Claude Code