Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/src/content/docs/reference/safe-inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,26 @@ safe-inputs:
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
```

### Shared gh CLI Tool

The repository includes a reusable shared workflow (`shared/gh.md`) that provides a general-purpose gh CLI tool:

```yaml wrap
imports:
- shared/gh.md
```

This imports a `gh` tool that accepts any gh CLI command as arguments:

```yaml
# The agent can use:
gh with args: "pr list --limit 5"
gh with args: "issue view 123"
gh with args: "api repos/{owner}/{repo}"
```

The shared workflow uses `${{ github.token }}` for authentication, providing access based on the workflow's `permissions` configuration.

## Input Parameters

Define typed parameters with validation:
Expand Down