GitHub Actions runs in the Tripwire dashboard

The GitHub REST API lists workflow runs with the branch, commit, event and result. Combined with a test report from the same run, that's everything Tripwire's runs screen shows.

Field mapping

How GitHub Actions's data maps to the kit's Run type. Your backend does this mapping and serves the result to the kit. The kit itself doesn't call GitHub Actions. Check field names against GitHub Actions's documentation for the version you use.

GitHub Actions fieldKit fieldNote
workflow_runs[].idRun.idOr run_number for a shorter display id
workflow_runs[].nameRun.suiteThe workflow name
workflow_runs[].head_branchRun.branch
workflow_runs[].head_shaRun.commitShow the first 7 characters
workflow_runs[].actor.loginRun.author
workflow_runs[].eventRun.triggerpush → Merge, pull_request → Pull request, schedule → Nightly, workflow_dispatch → Manual
workflow_runs[].status + conclusionRun.statusin_progress → running; completed + success → passed; completed + failure → failed
workflow_runs[].run_started_atRun.started
updated_at − run_started_atRun.durationMsApproximate; use the run's timing endpoint for billable time

Listing runs

GET /repos/{owner}/{repo}/actions/runs returns workflow_runs, newest first, and accepts filters such as branch, event and status. Each run has status (for example queued, in_progress or completed) and, once complete, a conclusion such as success, failure, cancelled or timed_out.

Combine with test results

A workflow run tells you whether CI passed; it doesn't say which tests failed. Have the workflow upload its test report to your backend, tagged with the run id, and merge the two into one Run with counts. See the JUnit XML and Playwright guides.

Questions

Where do pass and fail counts come from?

Not from the workflow run. Upload the test report (JUnit XML or Playwright JSON) as an artifact or send it to your backend from a step.

Should I poll the API or use webhooks?

Use the workflow_run webhook to learn when runs start and finish, and the REST API to backfill history.

What about GitLab or Jenkins?

The same Run fields exist there under different names: pipelines and jobs in GitLab, builds in Jenkins.