Skip to main content

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

ParameterTypeDescription
Search queryStringText or structured query to find matching repositories (e.g., language:python, org:facebook, topic:react).
Sort byStringField to sort results by (e.g., stars, forks, updated).
OrderStringResult order: asc (ascending) or desc (descending).
PageIntegerPage number of results to return for pagination.
Results per pageIntegerNumber 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".

Troubleshooting

FAQs