> ## 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.

# List GitHub workflow runs

> List and filter GitHub Actions workflow runs.

`github.listWorkflowRuns` lists runs across a repository or for one workflow.

```ts automations/list-failed-github-runs.automation.ts theme={null}
import { automation } from "automate.ax"
import { github } from "automate.ax/github"

export default automation("List failed GitHub runs", () => {
  const runs = github.listWorkflowRuns({
    branch: "main",
    owner: "SentsCo",
    repository: "automate.ax",
    status: "failure",
    workflowId: "ci.yml",
  })
})
```

Provide `owner` and `repository`. Optional filters are `workflowId`, `actor`, `branch`, `checkSuiteId`, `created`, `event`, `headSha`, `status`, and `excludePullRequests`. `created` uses GitHub date-search syntax. Pagination defaults to page `1` with `30` results. Returns each run's `id`, `html_url`, `status`, and `conclusion`. Requires Actions read permission.
