List repositories for the authenticated user
The GitHub List repositories for the authenticated user action retrieves repositories owned by the currently authenticated user with filtering and sorting options. Use this read-only action when you need the authenticated user's repositories as input to other workflow steps.
Results are limited to repositories that the authenticated user and the connected GitHub app can access.
Limitations
- Calls are subject to GitHub API rate limits and to any rate limits configured for the GitHub connector. On large organizations with many repositories or when many actions run in a short time, you may see slower responses or rate-limit errors.
Prerequisites
-
Your admin must install and configure the GitHub connector, add the GitHub actions pack under Admin > Actions, and enable this action.
-
A GitHub app must be installed on the relevant organization(s) and linked to the correct GitHub datasource in the Glean admin console.
-
You must authenticate for GitHub actions so the action can run using your GitHub identity.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Before | String | Filters results to items that occur before this value, often passed as a timestamp or pagination cursor. |
| Direction | String | Sort direction for the results, typically asc for ascending or desc for descending order. |
| Page | Integer | Page number of results to return for paginated responses; defaults to 1 (the first page). |
| Results per page | Integer | Number of items to include per page in a paginated response; defaults to 30. |
| Raw response | Boolean | If true, returns the raw API response payload; if false, returns a processed or normalized result. |
| Since | String | Filters results to items created or updated after this value, usually provided as an ISO 8601 timestamp. |
| Sort by | String | Field to sort results by; defaults to full_name. |
| Repository type | String | Type of items to include in the results; defaults to all, for example, all types unless further filtered. |
Usage example
You want to identify your most recently updated personal repositories to prioritize maintenance work.
Instruction to an agent:
"Show me my personal GitHub repositories (not forks) that were updated since 2025-01-01, sorted by last update time. Return 50 repositories per page."
Resulting behavior:
-
Calls List repositories for the authenticated user with:
-
Repository typeset to "owner" to exclude forks. -
Sinceset to "2025-01-01T00:00:00Z" to filter recent updates. -
Sort byset to "updated". -
Directionset to "desc" for newest first. -
Results per pageset to 50. -
Pageset to 1 (default).
-
-
Retrieves repository data including:
-
Repository name and full name
-
Visibility (public or private)
-
Primary language
-
Default branch
-
Last updated timestamp
-
Last pushed timestamp
-
Repository description
-
Stars and forks count
-
-
Presents the filtered list of repositories sorted by most recent activity.
-
User can review the list and decide which repositories need attention.
Workflow tip: Use filters like Repository type, Since, Sort by, and Direction to narrow results. Combine with Page and Results per page for pagination. Use this action as the first step in workflows that generate onboarding documentation or repository summaries by feeding the repository list into downstream actions.