GitHub Action¶
The repository ships a composite action that installs Tynex and runs one prompt.
name: Tynex
on: pull_request
jobs:
review:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7.0.1
- uses: jamshedazhar/tynex@main
with:
prompt: review this pull request
model: anthropic/claude-sonnet-4-6
permission-mode: plan
version: 0.3.0
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
Inputs¶
| Input | Default | Meaning |
|---|---|---|
prompt |
required | Prompt passed to tynex -p. |
model |
empty | provider/model-id; empty uses normal selection. |
permission-mode |
plan |
plan, ask, accept-edits, or bypass. |
project |
false |
Load project settings, permissions, extensions, prompts, skills, context files, and built-in skills. |
args |
empty | Extra CLI flags, e.g. --budget cost=0.50. |
version |
0.3.0 |
Tynex version to install, or latest. |
The action runs in --no-session --no-mcp --no-project mode by default. Set project: true to load repository settings, permissions, extensions, prompts, skills, context files, and built-in skills. Keep plan mode for repository review and do not grant write permissions. args is trusted workflow input; the action rejects --permission-mode, --no-project, --no-session, --no-mcp, --model, and --plan there, so use the typed inputs instead.
Fork pull requests¶
Secrets are not available to pull_request workflows from forks. Do not switch to pull_request_target and check out untrusted code: that combination exposes secrets to fork code. Run the action on trusted branches, or use a separate workflow with no repository-write token. Do not pass the provider key or any repository-write token to fork code. The example action refs are illustrative; pin them to commit SHAs in production.
Pinning¶
Pin the action to a release tag or commit SHA in production, and pin the version input to the Tynex release you tested. The example uses @main because the action ships with 0.3.0. The action installs Tynex with uvx, so the runner needs network access to PyPI.