Skip to main content

History Repository Configuration

Action inputs

InputDefaultDescription
history-enabledfalseEnable JSON publishing
history-repository''History repo (owner/repo)
history-token''Token with write access (required when enabled)
history-branchmainTarget branch
history-pathdataData root path in history repo
history-repository-nameautoSource repo key (auto = GITHUB_REPOSITORY)
history-modemultiReserved (multi only in v1)
history-default-repository''Written to config.json on first publish
history-pages-url''Base URL for the history dashboard (GitHub Pages). If unset, Actions Insights will try to discover it or fall back to https://{owner}.github.io/{repo}/.

Workflow example

- uses: owner/actions-insights@v1
with:
test-results: '**/*.{trx,xml}'
history-enabled: true
history-repository: my-org/test-history
history-token: ${{ secrets.ACTIONS_INSIGHTS_HISTORY_TOKEN }}

Secret setup

  1. Create a fine-grained PAT or classic PAT with contents: write on the history repository
  2. Add as ACTIONS_INSIGHTS_HISTORY_TOKEN in each source repository's secrets

Dashboard config

config.json in the history repository root:

{
"defaultRepository": "my-org/my-project"
}

When set, the dashboard auto-navigates to this repository (users can still switch via the repository list).