Commit Graph
734 Commits
Author SHA1 Message Date
GitHub Actions 86eb26bf01 chore: bump Claude Code to 2.1.141 and Agent SDK to 0.2.141 v1.0.122 2026-05-13 23:19:48 +00:00
GitHub Actions f4fb5c6cdc chore: bump Claude Code to 2.1.140 and Agent SDK to 0.2.140 v1.0.121 2026-05-12 21:10:29 +00:00
GitHub Actions dde2242db6 chore: bump Claude Code to 2.1.139 and Agent SDK to 0.2.139 v1.0.120 2026-05-11 18:44:48 +00:00
GitHub Actions 476e359e62 chore: bump Claude Code to 2.1.138 and Agent SDK to 0.2.138 v1.0.119 2026-05-09 06:34:03 +00:00
GitHub Actions ad67978e5e chore: bump Claude Code to 2.1.137 and Agent SDK to 0.2.137 v1.0.118 2026-05-09 00:11:30 +00:00
GitHub Actions 034cbdb008 chore: bump Claude Code to 2.1.136 and Agent SDK to 0.2.136 v1.0.117 2026-05-08 18:39:38 +00:00
GitHub Actions 939ae9c056 chore: bump Claude Code to 2.1.133 and Agent SDK to 0.2.133 v1.0.116 2026-05-07 23:49:29 +00:00
Octavian GuzuandGitHub e9c374db23 Update HackerOne links in SECURITY.md (#1268)
* Update HackerOne links in SECURITY.md

🏠 Remote-Dev: homespace

* Rename VDP heading to Anthropic Bug Bounty

🏠 Remote-Dev: homespace
2026-05-07 11:21:40 +01:00
GitHub Actions 9db782c3a1 chore: bump Claude Code to 2.1.132 and Agent SDK to 0.2.132 v1.0.115 2026-05-06 22:09:09 +00:00
GitHub Actions 62238ddb33 chore: bump Claude Code to 2.1.131 and Agent SDK to 0.2.131 v1.0.114 2026-05-06 07:48:07 +00:00
GitHub Actions 7d7d3055f1 chore: bump Claude Code to 2.1.129 and Agent SDK to 0.2.129 v1.0.113 2026-05-06 01:40:52 +00:00
GitHub Actions 2cc1ac1331 chore: bump Claude Code to 2.1.128 and Agent SDK to 0.2.128 v1.0.112 2026-05-04 23:02:42 +00:00
Justin BisignanoandGitHub 38f25dd747 fix: make trigger_phrase match case-insensitive (#1279)
GitHub @-mention autocomplete inserts @Claude (capitalized) when users
pick the bot from the dropdown, but the trigger regex had no 'i' flag,
so the action would log 'No trigger was met for @claude' and exit. The
workflow's outer 'if: contains(...)' gate is case-insensitive, so the
job runs and looks like it silently ignored the user.

The regex was case-sensitive since the initial commit with no test
asserting either behavior; the existing tests focus on word-boundary
precision (email@claude.com etc.), not case.
2026-05-02 10:10:30 -07:00
GitHub Actions fefa07e9c6 chore: bump Claude Code to 2.1.126 and Agent SDK to 0.2.126 v1.0.111 2026-05-01 02:05:59 +00:00
GitHub Actions ef50f123a3 chore: bump Claude Code to 2.1.123 and Agent SDK to 0.2.123 v1.0.110 2026-04-29 03:29:24 +00:00
GitHub Actions b3c0320e7e chore: bump Claude Code to 2.1.122 and Agent SDK to 0.2.122 v1.0.109 2026-04-28 22:05:53 +00:00
Octavian GuzuandGitHub c93e8fe879 docs: pull_request_target guidance and base-action trust model (#1250)
* docs: add pull_request_target/workflow_run guidance and base-action trust model

Adds a security.md section on safe checkout patterns under
pull_request_target/workflow_run, and a trust-model section to the
base-action README clarifying that callers are responsible for the
working directory and prompt being trusted.

🏠 Remote-Dev: homespace

* docs: refine PRT/workflow_run guidance — root checkout + workflow_run ref

Second example now checks out the base ref at the workspace root before
the head-ref subdirectory checkout (this action expects a git repo at
the root). Adds the workflow_run ref form, drops the PRT-specific
gh-pr-diff hint from the first example, and generalises the closing
line to cover both event types.

🏠 Remote-Dev: homespace

* docs: use actions/checkout@v6 in examples (consistency)

🏠 Remote-Dev: homespace
2026-04-28 10:01:48 -07:00
GitHub Actions 11a9dadd19 chore: bump Claude Code to 2.1.121 and Agent SDK to 0.2.121 v1.0.108 2026-04-28 00:31:46 +00:00
GitHub Actions 567fe954a4 chore: bump Claude Code to 2.1.119 and Agent SDK to 0.2.119 v1.0.107 2026-04-25 01:55:30 +00:00
GitHub Actions 2da6cfae68 chore: bump Claude Code to 2.1.120 and Agent SDK to 0.2.120 v1.0.106 2026-04-25 00:15:05 +00:00
GitHub Actions e58dfa5555 chore: bump Claude Code to 2.1.119 and Agent SDK to 0.2.119 v1.0.105 2026-04-23 23:24:21 +00:00
6ee201f023 fix: allow + in branch names (generated by Claude Code EnterWorktree) (#1248)
Claude Code's EnterWorktree tool converts "/" to "+" when generating
branch names from worktree names (e.g. EnterWorktree("feat/foo") creates
branch "worktree-feat+foo"). The strict whitelist in validateBranchName
rejected these names, causing claude-code-action to fail on any PR opened
from an EnterWorktree-generated branch.

Since all git calls use execFileSync (not shell interpolation), "+" carries
no command injection risk — the same rationale used for allowing "#".
Git itself permits "+" in branch names per git-check-ref-format.

Fixes: https://github.com/anthropics/claude-code-action/issues/1244

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 22:17:44 -07:00
GitHub Actions b4d6741327 chore: bump Claude Code to 2.1.118 and Agent SDK to 0.2.118 v1.0.104 2026-04-23 00:42:34 +00:00
GitHub Actions 4e5d8b13ca chore: bump Claude Code to 2.1.117 and Agent SDK to 0.2.117 v1.0.103 2026-04-22 00:04:56 +00:00
GitHub Actions 5d5c10a4f3 chore: bump Claude Code to 2.1.116 and Agent SDK to 0.2.116 v1.0.102 2026-04-20 22:18:45 +00:00
Octavian GuzuandGitHub 632a368e81 docs: nit updates to security.md (#1240)
🏠 Remote-Dev: homespace
2026-04-20 15:00:35 +01:00
Ashwin BhatandGitHub 4c682d8b65 chore: bump oven-sh/setup-bun to v2.2.0 (Node.js 24) (#1238)
setup-bun v2.1.2 runs on Node.js 20, which GitHub will stop supporting
on June 2, 2026. v2.2.0 updates the action runtime to Node.js 24.

Fixes #1237
2026-04-19 17:53:46 -07:00
GitHub Actions 38ec876110 chore: bump Claude Code to 2.1.114 and Agent SDK to 0.2.114 v1.0.101 2026-04-18 01:38:24 +00:00
Ashwin BhatandGitHub 0d2971c794 fix: pass install.sh binary path explicitly to Agent SDK (#1235)
Agent SDK 0.2.113 dropped vendor/ripgrep and now ships native binaries
via per-platform optionalDependencies. Two breakages:

- action.yml chmod'd vendor/ripgrep which no longer exists, failing the
  Install Dependencies step with find exit 1.
- The SDK auto-resolves its bundled binary by trying the -musl platform
  package before the glibc one. bun install does not respect the
  package.json libc field and installs both on glibc Linux, so the SDK
  picks the musl binary and spawn fails with ENOENT.

Remove the obsolete ripgrep chmod. Make installClaudeCode() return the
install.sh binary path and pass it explicitly as
pathToClaudeCodeExecutable so the SDK skips auto-resolution entirely.
v1.0.100
2026-04-17 15:50:46 -07:00
GitHub Actions c68f82cb11 chore: bump Claude Code to 2.1.113 and Agent SDK to 0.2.113 2026-04-17 19:40:20 +00:00
78758edf84 chore: bump model version in workflows (#1227)
https://claude.ai/code/session_01Mc8dExn9NcARLohJ1XG5kv

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-16 15:25:28 -07:00
GitHub Actions c3d45e8e94 chore: bump Claude Code to 2.1.112 and Agent SDK to 0.2.112 v1.0.99 2026-04-16 20:00:08 +00:00
GitHub Actions 931e620273 chore: bump Claude Code to 2.1.111 and Agent SDK to 0.2.111 v1.0.98 2026-04-16 15:22:22 +00:00
GitHub Actions 905d4eb99a chore: bump Claude Code to 2.1.110 and Agent SDK to 0.2.110 v1.0.97 2026-04-15 22:06:40 +00:00
GitHub Actions 5fb899572b chore: bump Claude Code to 2.1.109 and Agent SDK to 0.2.109 v1.0.96 2026-04-15 04:05:34 +00:00
c3bf66dbc2 fix: handle fork PRs by fetching via refs/pull/N/head (#962) (#963)
When a PR originates from a fork, `git fetch origin <branch>` fails
because the branch only exists on the fork's remote.

Fix: detect cross-repository PRs via the `isCrossRepository` GraphQL
field and fetch using `pull/<number>/head:<branch>` refspec instead,
which is the standard GitHub mechanism for accessing fork PR branches.

Changes:
- Add `isCrossRepository` and `headRepository` to PR GraphQL query
- Add corresponding fields to GitHubPullRequest type
- Branch checkout uses pull ref for fork PRs
- Update test fixtures with new fields

Co-authored-by: User <user@example.com>
2026-04-14 20:33:04 -07:00
GitHub Actions 3943183052 chore: bump Claude Code to 2.1.108 and Agent SDK to 0.2.108 v1.0.95 2026-04-14 19:16:11 +00:00
GitHub Actions 65f29cf68e chore: bump Claude Code to 2.1.107 and Agent SDK to 0.2.107 2026-04-14 06:14:35 +00:00
GitHub Actions 1c8b699d43 chore: bump Claude Code to 2.1.105 and Agent SDK to 0.2.105 v1.0.94 2026-04-13 21:56:13 +00:00
Octavian GuzuandGitHub ff49ec5fd6 Prepend system bin dirs to PATH when allowed_non_write_users is set (#1208)
Ensures later steps resolve standard tools like git and tar from /usr/bin
regardless of what setup actions added earlier in the job. Also strengthens
the PAT guidance in security.md.

🏠 Remote-Dev: homespace
2026-04-12 21:51:15 +01:00
GitHub Actions 25474bfe8b chore: bump Claude Code to 2.1.104 and Agent SDK to 0.2.104 2026-04-12 03:21:43 +00:00
GitHub Actions b47fd721da chore: bump Claude Code to 2.1.101 and Agent SDK to 0.2.101 v1.0.93 2026-04-10 19:06:59 +00:00
GitHub Actions c26cb6427d chore: bump Claude Code to 2.1.100 and Agent SDK to 0.2.98 2026-04-10 05:15:24 +00:00
GitHub Actions 657fb7c9c9 chore: bump Claude Code to 2.1.98 and Agent SDK to 0.2.98 v1.0.92 2026-04-09 19:21:28 +00:00
GitHub Actions 2ff1acb3ee chore: bump Claude Code to 2.1.97 and Agent SDK to 0.2.97 v1.0.91 2026-04-08 21:55:30 +00:00
Octavian GuzuandGitHub b2fdd80112 Use pinned bun binary for post-steps when allowed_non_write_users is set (#1190)
Copies the bun binary into $GITHUB_ACTION_PATH/bin before the claude step
runs and uses that copy in the two post-steps that invoke bun. Falls back
to PATH-resolved bun when allowed_non_write_users is empty.

🏠 Remote-Dev: homespace
2026-04-08 10:20:15 +01:00
GitHub Actions 26ddc358fe chore: bump Claude Code to 2.1.96 and Agent SDK to 0.2.96 v1.0.90 2026-04-08 04:40:59 +00:00
GitHub Actions 398370690e chore: bump Claude Code to 2.1.94 and Agent SDK to 0.2.94 2026-04-07 21:22:37 +00:00
6cad158a17 security: reject PATH_TO_CLAUDE_CODE_EXECUTABLE with control characters (#1185)
dirname() preserves embedded newlines, so a value like
`/usr/bin/claude\n/attacker/path` writes two lines to GITHUB_PATH,
injecting an attacker-controlled directory into PATH for all subsequent
workflow steps.

Validate the input immediately after reading it and throw if it
contains any control characters (0x00-0x1f, 0x7f). This is fail-closed
rather than silent stripping — a path with control characters is always
misconfigured or malicious.

Fixes #1160

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 17:26:08 -07:00
0f1fe5ef85 fix: forward MCP_TIMEOUT, MCP_TOOL_TIMEOUT, MAX_MCP_OUTPUT_TOKENS to action step (#1162)
These three env vars are read directly from process.env by the Claude CLI
subprocess to configure MCP server behavior. Users setting them in their
workflow had no reliable way to make them reach the CLI:

- Job-level env: shadowed by the step's explicit env: block
- Step-level env: on the calling workflow step is not inherited by
  composite action steps
- GITHUB_ENV from a prior step: same shadowing problem
- settings input: writes to ~/.claude/settings.json, not process.env

The fix is to add explicit ${{ env.VAR }} passthrough lines for all three
vars, matching the existing pattern already used for OTEL_*, AWS_*, and
Vertex configuration (lines 271-317). No TypeScript changes are needed;
the forwarding chain in parse-sdk-options.ts is already correct.

Fixes #1152

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 10:37:03 -07:00