Repository navigation
Description
Verified against (commit SHA or released version)
commit 988c035 (main, v0.14.0), built and run on Ubuntu 22.04, Node 22.20
Discord Username / User ID
onlyonenftking
What does this improvement do?
The generated workflow already knows that PRs without secrets would make the check "permanently red", and it skips fork PRs for that reason (ci.ts#L287-L289):
# Fork PRs run without repository secrets, so the API key would be empty and
# this check permanently red. Skip forks (a maintainer's push still runs it).
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}Dependabot PRs have the same problem but pass this condition, because Dependabot pushes its branches to the base repo, so head.repo.full_name == github.repository. GitHub's docs (Troubleshooting Dependabot on GitHub Actions) say that when a Dependabot event triggers a workflow, Actions secrets are not available and only Dependabot secrets are. The workflow passes api-key: ${{ secrets.TESTSPRITE_API_KEY }}, so on every Dependabot PR that value is empty and the job fails with an auth error.
Any repo with Dependabot version updates turned on then gets a red TestSprite check on every dependency PR. That's the same "permanently red" result the fork guard exists to prevent, and it teaches people to ignore the check.
Reproduction:
$ git init -q app && cd app
$ testsprite ci init github --project proj_1 >/dev/null
$ grep -n "if:" .github/workflows/testsprite.yml
24: if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}For a Dependabot PR in this repo, head.repo.full_name equals github.repository, so the job runs with an empty secrets.TESTSPRITE_API_KEY (per the GitHub doc above).
Related but separate: #460 (the action this workflow uses is archived). Whatever replaces it, the generated if: condition needs this case either way.
Details / implementation notes
Planned fix (I'll open the PR once this is accepted):
- Extend the generated condition the way GitHub's doc recommends:
… && github.actor != 'dependabot[bot]'forpull_requestevents. Pushes from maintainers and merges to the default branch still run. - Update the comment above it to name both cases (forks and Dependabot), and add one line pointing to the alternative: store
TESTSPRITE_API_KEYas a Dependabot secret too, then delete the actor check. - Existing generated files are untouched. Users get the new condition when they re-run
ci init github --force, which is the regeneration path the workflow header already documents. - Tests in
src/commands/ci.spec.ts: a snapshot/assertion of the generatedif:line, plus a test that the comment mentions Dependabot.
Confirmations
- I have searched existing issues and this is not a duplicate.
- I have provided my Discord identity above for reward coordination.
Activity
fyZhang66 commentedon Oct 20, 2026
Confirmed on v0.15.0, thanks @nftkingiii. The generated
if:skips fork PRs, but Dependabot pushes its branches from inside the repository, so those PRs pass the check and run with empty secrets. Accepted, scope:github.actor != 'dependabot[bot]'to thepull_requestbranch of the generatedif:(shape B) with a one-line comment next to the fork rule; thedeployment_statusbranch is unchanged.ci initsnapshot and the "what the template fixes in place" sentence inDOCUMENTATION.md.No new dependency. Comment
/assignto claim it.Smile-Catpy commentedon Oct 21, 2026
/assign
testsprite-hob commentedon Oct 21, 2026
Assigned to @Smile-Catpy. Thanks for taking this on. (0 more slots available.)
Your open assigned issues (3/3):
testsprite-ciskill is written with invalid YAML frontmatter, so Kiro refuses to load it and strict readers drop its metadata #548 — [Hackathon] fix(agent): the newtestsprite-ciskill is written with invalid YAML frontmatter, so Kiro refuses to load it and strict readers drop its metadatafix(ci): skip Dependabot PRs in the generated workflow (TestSprite#619)