Skip to main content

Documentation Index

Fetch the complete documentation index at: https://trunk-4cab4936-sam-gutentag-changelog-flaky-tests-fork-pr-u.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

You can now accept test result uploads from fork pull requests without exposing your organization API token to fork workflows. Fork PRs are a long-standing gap for open-source repos: GitHub doesn’t pass repository secrets to workflows triggered by pull_request from a fork, so the analytics CLI has no org token to authenticate with, and those contributors lose flake detection. The new Fork PR Uploads toggle at Settings > Repositories > [repo] > Flaky Tests closes that gap. Enabling it mints a non-secret, 8-character public repo identifier that fork workflows send on the X-Trunk-Public-Repo-Id header instead of a token. The identifier is a routing key, not a credential. Uploads are authorized by two independent checks: the repository must have fork PR uploads enabled, and GitHub must verify the workflow run belongs to a real pull request against the upstream repository. Neither check is sufficient on its own. Toggling the setting is admin-only. Read the docs to learn more.