View as Markdown
GitHub icon

GitHub ACTION

List Repositories

List repositories the authenticated user can access, or — when org is provided — the repositories of a specific organization. Use this to discover a repo's owner/repo name before calling Get Repository, Get Repository Content, or List Commits. To find repos by name, set the name substring filter. See the documentation
  • Action
  • Read only
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's GitHub account once, then configure and run List Repositories from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "github-list-repositories",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    github: { authProvisionId: "apn_xxxxxxx" },
    org: "Organization",
    name: "Name",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

List Repositories inputs
Property Type Description
org Organization string
List repositories for this organization (login, e.g. PipedreamHQ) instead of the authenticated user. Get org logins from Get Current User. Leave blank to list the user's own repositories.
Optional
name Name string
Case-insensitive substring match on repository name. Example: api matches payments-api and internal-api-tools.
Optional
visibility Visibility string
Limit results to repositories with the specified visibility (user repos only — ignored when org is set).
Optional
type Type string
Limit results to repositories of the specified type. For user repos, do not combine with visibility.
Optional
sort Sort string
The field to sort the results by
Optional
direction Direction string
The direction to sort the results by
Optional
maxResults Max Results integer
The maximum number of results to return. Defaults to 100.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
github-list-repositories
Version
1.0.3
App
GitHub
Authentication
OAuth
Read-only
Yes
Destructive
No
Open world
Yes