Repository navigation
fix(ci): skip Dependabot PRs in the generated workflow - #619
Conversation
Dependabot branches live in the base repository, so the fork guard passes, but Dependabot-triggered runs get Dependabot secrets, not Actions secrets. The generated gate therefore ran every dependency PR with an empty TESTSPRITE_API_KEY and failed permanently. Add `github.actor != 'dependabot[bot]'` to the pull_request branch and note it next to the fork rule; the deployment_status branch is unchanged. Closes TestSprite#508
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. WalkthroughThe generated GitHub Actions workflow now excludes pull requests authored by ChangesDependabot workflow guard
Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested labels: Merge Risk:
|
|
🏆 Season 4 CLI Improvement Bonus: entry recorded. Thanks, @Smile-Catpy! To be counted, this PR needs the following by Oct 29, 11:59 PM PT:
Rewards go to merged PRs judged a genuine improvement, and up to three bonus-eligible PRs count per person. Untick the box to withdraw the entry. This comment refreshes when you edit the PR. Full rules. |
What does this PR do?
The generated workflow skips fork PRs because they run without repository secrets. Dependabot PRs have the same problem but pass that guard: Dependabot pushes its branches to the base repository, so
head.repo.full_name == github.repository. GitHub Actions does not expose repository Actions secrets to Dependabot-triggered runs anyway — only Dependabot secrets — so${{ secrets.TESTSPRITE_API_KEY }}is empty and the gate fails on every dependency PR.Add
github.actor != 'dependabot[bot]'to thepull_requestbranch of the generatedif:, with a note next to the fork rule. Thedeployment_statusbranch is unchanged.Related issue
Closes #508
Season 4 CLI Improvement Bonus
Discord username: smilecat__
Type of change
Checklist
mainbranch.npm run lintandnpm run format:checkpass.npm run typecheckpasses.npm testpasses and coverage stays at or above the 80% gate.DOCUMENTATION.mdreflects the generated workflow.Notes for reviewers
functional change is the added
github.actorcheck in thepull_requestbranch.Summary by CodeRabbit