* feat(hub): deploy canonical workflow bundles Keep CLI deployment aligned with Hub's authored bundle boundary so validation and activation receive the same deterministic source files. Public documentation now teaches that boundary as the only configuration format. * test(hub): assert validation diagnostics directly * refactor(hub): deepen HTTP client module * feat(hub): validate named agent configurations * docs(hub): align Claude mode example
3.0 KiB
title, description, nav, order, category
| title | description | nav | order | category |
|---|---|---|---|---|
| GitHub access | Grant one workflow step a scoped GitHub token and git setup. | GitHub access | 65 | Hub |
GitHub access
A trigger grants no GitHub credential. Put a github block on the step that needs repository authority:
name: implement-request
on: github.issue_comment
max_runtime: 2h
filters:
repo: example/project
contains: "@paseo"
from_users: [maintainer]
steps:
- id: implement
environment: development
max_runtime: 90m
idle_timeout: 10m
agent: codex
github:
connection: example-github
repositories: [example/project]
permissions:
contents: write
pull_requests: write
prompt:
- text: |
Implement the request, push a branch, and open a pull request with gh.
Call hub.finish_execution when done.
${{ paseo.prompt }}
The agent can use git and gh within the declared repositories and permissions. Hub mints the token when the step starts and revokes it when execution ends.
Fields
| Field | Notes |
|---|---|
connection |
Project GitHub connection slug. |
repositories |
Repositories the token can reach. On a GitHub-triggered run, this defaults to the triggering repository. Required for other providers. |
permissions |
Installation-token permissions such as contents, pull_requests, and issues. Defaults to contents: read. |
duration |
Token lifetime. Defaults to 1h, GitHub's maximum. |
Requested authority cannot exceed the GitHub App installation. Activation and dispatch fail clearly when the connection, repository, or permissions cannot be resolved.
Agent environment
Hub supplies GH_TOKEN and git configuration through environment variables:
- Commits use the App bot identity.
git@github.comremotes are rewritten to HTTPS.- Global and system git configuration are ignored.
- The daemon host's git credentials are not used or changed.
Keep authority on the worker
A classifier can read untrusted request text without GitHub authority. Put the github block only on the later branch that makes a change. Workflow routing shows the ordered classifier/worker shape.
Connection values for other integrations remain explicit step environment values:
env:
SOME_TOKEN: "${{ paseo.connections.some-connection.token }}"
Hub resolves the value for the step and does not persist it. See Hub security for provider and host boundaries.