
GitHub Repositories Search
CertifiedSearch repositories
GitHub Repositories Search
Search repositories
Runs a GitHub repository search and writes matching repository metadata to Kestra internal storage. Anonymous execution skips private repositories and may omit fields, and authenticated runs default to UPDATED sorted in ascending order.
type: io.kestra.plugin.github.repositories.SearchExamples
Search for Github repositories using query.
id: github_repo_search_flow
namespace: company.team
tasks:
- id: search_repositories
type: io.kestra.plugin.github.repositories.Search
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
query: "repo:kestra-io/plugin-github"
Search for Github repositories using repository.
id: github_repo_search_flow
namespace: company.team
tasks:
- id: search_repositories
type: io.kestra.plugin.github.repositories.Search
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
repository: kestra-io/plugin-github
Search for Github repositories and order the results.
id: github_repo_search_flow
namespace: company.team
tasks:
- id: search_repositories
type: io.kestra.plugin.github.repositories.Search
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
query: "user:kestra-io language:java is:public"
sort: STARS
order: DESC
Search for Github repositories with filters like language and visibility, and order the results.
id: github_repo_search_flow
namespace: company.team
tasks:
- id: search_repositories
type: io.kestra.plugin.github.repositories.Search
oauthToken: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
user: kestra-io
language: java
visibility: PUBLIC
sort: STARS
order: DESC
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-github --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.
Properties
appInstallationToken string
GitHub App installation token
Installation access token generated by a GitHub App. Use this for repository-scoped app access instead of a user token.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150created string
Created date filter
Supports >, <, and range (..) syntax.
endpoint string
GitHub API endpoint
GitHub or GitHub Enterprise API base URL such as https://api.github.com or https://ghe.acme.com/api/v3. Set this when targeting GitHub Enterprise or a non-default API endpoint.
fetchType string
STORESTOREFETCHFETCH_ONENONEResult handling mode
Controls how hits are exposed in outputs; default STORE writes all hits to Kestra storage and returns a URI. FETCH returns all hits in the response, FETCH_ONE returns only the first hit, and NONE leaves outputs empty.
jwtToken string
GitHub JWT token
GitHub App JWT used for app-level authentication. Use this when the task should authenticate as the app rather than a user.
language string
Language filter
Language name or alias for the language: qualifier.
login string
GitHub login
GitHub login used with oauthToken for authenticated requests. Leave unset when authenticating with jwtToken or appInstallationToken.
oauthToken string
GitHub OAuth token
GitHub personal access token used for authenticated requests. Can be used alone or with login.
order string
ASCASCDESCSort direction
ASC sorts ascending (default); DESC sorts descending.
query string
Search keywords and qualifiers
Repository search syntax combining keywords with qualifiers like language, topic, stars.
repository string
Repository filter
owner/repo value for the repo: qualifier.
sort string
UPDATEDUPDATEDSTARSFORKSSort field
UPDATED sorts by last update time (default); STARS by star count; FORKS by fork count.
stars string
Stars filter
Star count qualifier; supports >, <, and range (..).
topic string
Topic filter
Topic name used for the topic: qualifier
user string
User scope
Limits search to repositories owned by the given user; use org: within query for organizations.
visibility string
PUBLICPRIVATEINTERNALVisibility filter
PUBLIC limits results to public repositories, PRIVATE to private repositories visible to the token, and INTERNAL to internal repositories
Outputs
row object
First hit
Available only when fetchType=FETCH_ONE; contains the first hit source.
rows array
Fetched hits
Available only when fetchType=FETCH; contains hit sources for the current response page.
size integer
Returned hit count
Number of hits included in outputs for the selected fetch type.
total integer
Total hits reported
Total hits reported by GitHub search, regardless of pagination.
uri string
uriStored hits URI
Available only when fetchType=STORE; Kestra internal storage path to the Ion file.