Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: "Flaky Tests: Fork PR Uploads for Test Collections"
description: "Test collections can now accept test result uploads from forked pull requests, with no API token in the fork workflow."
slug: flaky-tests-fork-pr-uploads-test-collections
date: 2026-09-30
category: Flaky Tests
type: new-feature
---

**Test collections can now accept uploads from forked pull requests.**

CI on a fork pull request can't read your repository secrets, so it has no Trunk API token. You can now opt a [test collection](/flaky-tests/test-collections) into accepting those uploads, so outside contributors get flake detection and [quarantining](/flaky-tests/quarantining) too.

- **Turn it on per collection.** Open the collection, go to **Settings** → **Uploads**, and turn on **Accept uploads from forked pull requests**. Only organization admins can change this setting.
- **No new identifier.** The fork workflow addresses the collection by its existing collection ID, which is safe to commit. The ID grants nothing unless the setting is on.
- **Upload without a token.** Set `allow-forked-pr-uploads: true` alongside `test-collection-id` on `trunk-io/analytics-uploader@v2`. If you call the CLI directly, pass `--allow-forked-pr-uploads` with `--test-collection-id`.
- **Contributors' CI stays green.** A refused fork upload logs a warning and exits successfully.
- **Easy to revoke.** Turning the setting off takes effect within about a minute.

Requires analytics-cli 0.15.5 or later and `analytics-uploader` v2.1.4 or later. The `@v2` tag already includes it.

Repositories that don't use test collections can keep using the existing public repo identifier. See [Uploads from forked pull requests](/flaky-tests/get-started/fork-pr-uploads) for both setups.
6 changes: 6 additions & 0 deletions changelog/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ rss: true

### September 2026

<Update label="September 30, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: Fork PR Uploads for Test Collections](/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections)**

Test collections can now accept test result uploads from forked pull requests, with no API token in the fork workflow.
</Update>

<Update label="September 15, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: Test Collections](/changelog/2026-09-15-flaky-tests-test-collections)**

Expand Down
1 change: 1 addition & 0 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,7 @@
{
"group": "September",
"pages": [
"changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections",
"changelog/2026-09-15-flaky-tests-test-collections"
]
},
Expand Down
6 changes: 6 additions & 0 deletions flaky-tests/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ og:title: "Trunk Flaky Tests changelog"

### September 2026

<Update label="September 30, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: Fork PR Uploads for Test Collections](/changelog/2026-09-30-flaky-tests-fork-pr-uploads-test-collections)**

Test collections can now accept test result uploads from forked pull requests, with no API token in the fork workflow.
</Update>

<Update label="September 15, 2026" tags={["Flaky Tests"]}>
**[Flaky Tests: Test Collections](/changelog/2026-09-15-flaky-tests-test-collections)**

Expand Down
Loading