Paseo GitHub Proxy

Reference

Tools

Every agent has these. repo is owner/name and can be omitted: it is inferred from the origin remote of the agent's working directory.

ToolWhat it doesActionParameters
github_policyWhat you may do on a repo (every action allowed or denied, with the reason) and the active rate-limit state.—repo
github_repo_infoDescription, default branch, visibility, open issue count.readrepo
github_list_branchesList branches.readrepo, page, per_page
github_delete_branchDelete a branch.delete_branchrepo, branch
github_list_prsList pull requests.readrepo, state, head, base, page, per_page
github_get_prOne pull request; include files, reviews or comments.readrepo, number, include
github_create_prOpen a pull request.create_prrepo, title, head, base, body, draft
github_update_prEdit, close or reopen a pull request.update_prrepo, number, title, body, base, state
github_merge_prMerge a pull request; pass sha to refuse if the branch moved.mergerepo, number, merge_method, commit_title, commit_message, sha
github_review_prApprove, request changes or comment, with optional line comments.reviewrepo, number, event, body, comments
github_commentComment on an issue or pull request.commentrepo, number, body
github_list_issuesList issues.readrepo, state, labels, assignee, page, per_page
github_get_issueOne issue, optionally with comments.readrepo, number, include_comments
github_create_issueOpen an issue.create_issuerepo, title, body, labels, assignees
github_checksCheck runs and commit status of a ref or pull request.readrepo, ref or pr
github_searchSearch issues, PRs, code, repos or commits. Needs a repo, org or user scope.readquery, type, repo, org, user, page, per_page
github_apiREST or GraphQL for what the others do not cover.generic_api_read / generic_api_write + the specific actionkind, method, path, params, body, query, variables, repo

Lists accept page and per_page (default 30); when more results exist the answer says which page to ask for. Answers are capped at about 40,000 characters.

Policy

Actions

ActionCoversRisk
readGet and list PRs, issues, checks, branches, repo info, search.safe
commentComment on issues and pull requests.low
reviewSubmit a pull request review.medium
create_issueOpen issues.low
create_prOpen pull requests.low
update_prEdit, close or reopen pull requests and issues.medium
mergeMerge pull requests.high
delete_branchDelete branches.high
force_pushNon fast-forward update of a ref.high
generic_api_readgithub_api GET and GraphQL queries.low
generic_api_writegithub_api writes and GraphQL mutations.high

Presets

PresetAllows by default
Read-only (default)read, generic_api_read
PR workflowRead-only plus comment, review, create_issue, create_pr, update_pr
FullEvery action

Changing an individual permission makes the policy Custom unless it matches a preset.

Rules

A rule has an effect (allow or deny), repository patterns, actions (or all), and an optional reason that is shown to the agent in the denial. For each needed action: a matching deny rule denies; otherwise a matching allow rule allows; otherwise the default permissions decide. Rule order does not matter.

Patterns are owner/repo, case-insensitive. * matches any run of characters inside one part: acme/*, */docs, acme/web-*. A lone * matches every repository.

How github_api is classified

RequestNeeds
GET, HEAD, GraphQL querygeneric_api_read
POST .../issuescreate_issue + generic_api_write
POST .../issues/N/comments, .../pulls/N/commentscomment + generic_api_write
POST .../pulls/N/reviewsreview + generic_api_write
POST .../pullscreate_pr + generic_api_write
PATCH/PUT .../pulls/N, .../issues/Nupdate_pr + generic_api_write
PUT .../pulls/N/merge, POST .../mergesmerge + generic_api_write
DELETE .../git/refs/...delete_branch + generic_api_write
PATCH .../git/refs/... with force: trueforce_push + generic_api_write
Any other writegeneric_api_write
GraphQL mutationgeneric_api_write + the action of each root field (mergePullRequest → merge, addComment → comment, deleteRef → delete_branch, ...)

Allowed owners

Checked before the policy. Exact, case-insensitive; * allows all; the default is *; an empty list refuses everything. Paths that name no owner (/user/repos, a search without repo:, org: or user:, a GraphQL call without repo) are refused unless * is allowed.

Settings

SettingWhereDefault
Active source (gh or app)Authgh
Fall back to the other source on rate limitAuthoff
Allowed ownersAuth* (every owner)
GitHub Apps (organization, App ID, installation ID, also-serves owners, default) and their private keysAuthnone
Preset, default permissions, rulesPolicyRead-only, no rules
Cache TTL in seconds (0 to 3600)Policy30
Forbid direct use of gh, curl and raw GitHubPolicyoff
Block gh/curl commands (hard)Policyoff

The page

Files

$PASEO_HOME/plugin-data/lerenn/paseo-github-proxy/: config.json, secrets.json (mode 0600), cache.json.