List Repositories
github.list_repos
ActionBusiness appsconnection required
Calls GET /orgs/{org}/repos or GET /users/{username}/repos.
List the repositories owned by an organisation or a user.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- GitHub
- Secret shape
- the GitHub personal access token
- Resolved by
- config.connection_id, else node.connection_id, else the tenant's sole GitHub connection
Configuration
6 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
org Organisation login. Give this or 'username', not both. | string | No | — | — | github |
username User login. Used when 'org' is empty. | string | No | — | — | octocat |
type Which repositories to include. For an org: all, public, private, forks, sources, member. For a user: all, owner, member. | string | No | — | one of "all", "public", "private", "forks", "sources", "member", "owner" | — |
sort Field to sort by. | string | No | — | one of "created", "updated", "pushed", "full_name" | — |
direction Sort direction. | string | No | — | one of "asc", "desc" | — |
max_items Stop after this many rows; further pages are followed via the Link header. | number | No | 100 | 1–1000 | — |
- At least one of org, username must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"max_items": 100,
"org": "github",
"username": "octocat"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
repositories The repositories this step read. | array | — |
repositories[].id GitHub's internal repository id. | number | — |
repositories[].name Repository name. | string | — |
repositories[].full_name owner/repo. | string | — |
repositories[].private True for a private repository. | boolean | — |
repositories[].html_url Link to the repository. | string | — |
repositories[].default_branch The repository's default branch. | string | — |
repositories[].description Repository description. | string | — |
count How many rows this step returned. | number | — |
{
"count": 0,
"repositories": [
{
"default_branch": "",
"description": "",
"full_name": "",
"html_url": "",
"id": 0,
"name": "",
"private": false
}
]
}Solutions with GitHub
See List Repositories run in a workflow.
In a technical demo we add the GitHub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.