GitHub Actions Setup
- a GitHub repository with a test runner reporter already configured (see Getting Started)
- the repository is built with GitHub Actions
- CI uploading reports to Flakiness.io on every push and PR, using a short-lived token exchanged via GitHub OIDC.
On GitHub Actions, authenticate via GitHub OIDC. Your workflow requests a short-lived token from GitHub, and the Flakiness.io reporter exchanges it for upload credentials automatically, so there are no secrets to create, rotate, or leak.
-
Confirm the reporter has
flakinessProjectset. OIDC requires the project identifier so Flakiness.io knows where to route the upload. If you followed Getting Started, this is already done. -
Grant
id-token: writepermission to the job..github/workflows/tests.yml jobs:test:runs-on: ubuntu-latestpermissions:contents: read # for actions/checkoutid-token: write # for Flakiness.io OIDCsteps:- uses: actions/checkout@v4# ... your test steps ... -
Push. The reporter picks up the OIDC token automatically at upload time.
On success you’ll see a confirmation line in the test output:
[flakiness.io] ✓ Uploaded as https://flakiness.io/my-org/my-app/run/42Fork Pull Requests
Section titled “Fork Pull Requests”GitHub doesn’t expose secrets or OIDC tokens to workflows triggered by fork PRs. If your repository accepts contributions from forks, see GitHub Actions for Open Source Projects for the two-workflow pattern.