> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update GitHub check run

> Update a GitHub check run's lifecycle or output.

`github.updateCheckRun` updates one check run.

```ts automations/complete-github-check-run.automation.ts theme={null}
import { automation } from "automate.ax"
import { github } from "automate.ax/github"

export default automation("Complete GitHub check", () => {
  github.updateCheckRun({
    checkRunId: 123456,
    conclusion: "success",
    owner: "SentsCo",
    repository: "automate.ax",
    status: "completed",
    output: { title: "Policy passed", summary: "All policy checks passed." },
  })
})
```

Provide the repository and `checkRunId`. Update the status, name, timestamps, correlation fields, actions, or rich output. Setting `status: "completed"` requires a `conclusion`; queued and in-progress updates cannot include one. Returns the check run's `id`, `name`, `head_sha`, `status`, and `conclusion`. Requires Checks write permission.
