| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A thin wrapper around anthropics/claude-code-action that holds the pin.
This release wraps v1.0.182 (e0cf66d1d257526b5d07f141838c338921cb8455).
Very little, on purpose. It forwards six inputs to one pinned copy of the upstream action and passes four outputs back. What that buys:
It is explicitly not a place to put the caller's job. There is one step inside, and a test that keeps it that way.
- name: Restore the Claude session
id: session
uses: CVector-Energy/claude-code-session@v0.1.1
with:
scope: issue-${{ github.event.issue.number }}
- name: Triage the issue
id: triage
uses: CVector-Energy/claude-code-run@v0.1.0
with:
prompt: ${{ steps.triage-prompt.outputs.body }}
claude-args: |
${{ env.TRIAGE_CLAUDE_ARGS }}
${{ steps.session.outputs.resume-args }}
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ steps.app.outputs.token }}
allowed-bots: 'my-org-bot[bot]'
show-full-output: true
- name: Act on the result
run: echo '${{ steps.triage.outputs.structured-output }}' | jq .| Input | Description | Required | Default |
|---|---|---|---|
| prompt | The prompt to send to Claude Code | Yes | |
| claude-args | Arguments passed straight to the CLI — model, --allowedTools, --json-schema, --resume | No | '' |
| anthropic-api-key | Anthropic API key | Yes | |
| github-token | Token the agent uses for git and gh | Yes | |
| allowed-bots | Comma-separated bot logins whose comments may reach the agent, or * | No | '' |
| show-full-output | Log Claude's full JSON output, tool results included | No | false |
| Output | Description |
|---|---|
| session-id | The session this run wrote, for --resume or for claude-code-session to save |
| structured-output | The JSON the agent returned when --json-schema was in claude-args |
| execution-file | Path to the execution log, for uploading as a trace artifact |
| branch-name | The branch the agent worked on, when it created one |
Four of the six inputs have to be passed at every call site no matter what, and it is worth being clear why, so nobody expects this action to shrink a workflow much:
So this saves roughly a line or two per call. The value is the pin and the shared home, not the line count.
allowed-bots defaults to empty, which allows no bots — the same default the wrapped action has. A wrapper that quietly widened it would loosen the trigger gate of every caller at once, so a test pins that default too.
show-full-output defaults to false for the same reason: it logs every tool result, and those can carry secrets into a public log.
Consumers should pin this action by full commit sha too. There is deliberately no floating v1 tag: this action carries an API key and a write-scoped token, so a ref that can be repointed under a consumer is the wrong thing to depend on.
npm install
npm test # node --test over src/*.test.js — action.yml wiring only, no runtimeThere is no dist/: a composite action runs from source, so there is nothing to build and nothing to drift.
MIT
| Back | FazBrowse Home | New Git URL |