Search repositories
GitHub search repositories action searches GitHub repositories that match a query string. This is a read-only action that returns repository metadata with support for sorting, filtering, and pagination.
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.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Search query | String | Text or structured query to find matching repositories (e.g., language:python, org:facebook, topic:react). |
| Sort by | String | Field to sort results by (e.g., stars, forks, updated). |
| Order | String | Result order: asc (ascending) or desc (descending). |
| Page | Integer | Page number of results to return for pagination. |
| Results per page | Integer | Number of results to return per page (maximum 100). |
Usage examples
-
"Find the most popular Python repositories on GitHub".
-
"Show me React repositories from Facebook".
-
"Find recently updated TypeScript projects with more than 100 stars".