
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/github
Advanced tools
GitHub REST API v3 client — repositories, branches, commits, files, issues, pull requests, releases, labels, milestones, Actions workflows, and search. Uses the encrypted credential vault for personal access tokens (classic ghp_ or fine-grained github_pat
GitHub module for RobinPath.
The github module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/github
1. Set up credentials
github.setToken "ghp_xxxxxxxxxxxx"
2. Get repository information
github.getRepo "octocat" "Hello-World"
| Function | Description |
|---|---|
github.setToken | Store a GitHub personal access token for authentication |
github.getRepo | Get repository information |
github.listRepos | List repositories for a user or the authenticated user |
github.createRepo | Create a new repository for the authenticated user |
github.deleteRepo | Delete a repository (requires delete_repo scope) |
github.listBranches | List branches in a repository |
github.getBranch | Get details for a specific branch |
github.createBranch | Create a new branch from an existing branch ref |
github.listCommits | List commits in a repository |
github.getCommit | Get a single commit by SHA |
github.listIssues | List issues in a repository |
github.createIssue | Create a new issue in a repository |
github.updateIssue | Update an existing issue |
github.closeIssue | Close an issue |
github.addIssueComment | Add a comment to an issue or pull request |
github.listIssueComments | List comments on an issue or pull request |
github.listPullRequests | List pull requests in a repository |
github.createPullRequest | Create a new pull request |
github.mergePullRequest | Merge a pull request |
github.listReleases | List releases in a repository |
github.createRelease | Create a new release from a tag |
github.listWorkflows | List GitHub Actions workflows in a repository |
github.triggerWorkflow | Trigger a GitHub Actions workflow dispatch event |
github.listWorkflowRuns | List workflow runs for a repository or specific workflow |
github.getUser | Get a user profile or the authenticated user |
github.searchRepos | Search GitHub repositories |
github.searchCode | Search code across GitHub repositories |
github.listLabels | List labels in a repository |
github.createLabel | Create a new label in a repository |
github.addLabels | Add labels to an issue or pull request |
github.listMilestones | List milestones in a repository |
github.createMilestone | Create a new milestone in a repository |
github.getRepo "octocat" "Hello-World"
github.listRepos "octocat"
github.createRepo "my-project" {"description": "A new project", "private": true, "autoInit": true}
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/github";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
github.setToken "ghp_xxxxxxxxxxxx"
github.getRepo "octocat" "Hello-World"
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/docker — Docker module for complementary functionality@robinpath/git — Git module for complementary functionality@robinpath/gitlab — GitLab module for complementary functionality@robinpath/vercel — Vercel module for complementary functionality@robinpath/netlify — Netlify module for complementary functionalityMIT
FAQs
GitHub REST API v3 client — repositories, branches, commits, files, issues, pull requests, releases, labels, milestones, Actions workflows, and search. Uses the encrypted credential vault for personal access tokens (classic ghp_ or fine-grained github_pat
The npm package @robinpath/github receives a total of 18 weekly downloads. As such, @robinpath/github popularity was classified as not popular.
We found that @robinpath/github demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.