331 Commits

Author SHA1 Message Date
GitHub Actions
6c0083bb72 chore: bump Claude Code to 2.1.198 and Agent SDK to 0.3.198 2026-07-01 20:46:29 +00:00
GitHub Actions
fad22eb3fa chore: bump Claude Code to 2.1.197 and Agent SDK to 0.3.197 2026-06-30 17:57:23 +00:00
GitHub Actions
4633baf526 chore: bump Claude Code to 2.1.196 and Agent SDK to 0.3.196 2026-06-29 23:27:52 +00:00
GitHub Actions
a92e7c70a4 chore: bump Claude Code to 2.1.195 and Agent SDK to 0.3.195 2026-06-26 21:30:09 +00:00
GitHub Actions
5211368122 chore: bump Claude Code to 2.1.193 and Agent SDK to 0.3.193 2026-06-25 21:46:38 +00:00
GitHub Actions
428971d2ec chore: bump Claude Code to 2.1.191 and Agent SDK to 0.3.191 2026-06-24 21:59:09 +00:00
GitHub Actions
74eedf1a18 chore: bump Claude Code to 2.1.190 and Agent SDK to 0.3.190 2026-06-24 15:55:36 +00:00
GitHub Actions
80b3182633 chore: bump Claude Code to 2.1.187 and Agent SDK to 0.3.187 2026-06-23 21:05:06 +00:00
GitHub Actions
30544b6743 chore: bump Claude Code to 2.1.186 and Agent SDK to 0.3.186 2026-06-22 20:38:23 +00:00
GitHub Actions
2fee155104 chore: bump Claude Code to 2.1.185 and Agent SDK to 0.3.185 2026-06-20 21:00:13 +00:00
GitHub Actions
51705da45e chore: bump Claude Code to 2.1.183 and Agent SDK to 0.3.183 2026-06-19 01:21:31 +00:00
GitHub Actions
806af32823 chore: bump Claude Code to 2.1.181 and Agent SDK to 0.3.181 2026-06-17 22:08:47 +00:00
GitHub Actions
9dd8b95a39 chore: bump Claude Code to 2.1.179 and Agent SDK to 0.3.179 2026-06-16 20:23:28 +00:00
GitHub Actions
4d7e1f0cd8 chore: bump Claude Code to 2.1.178 and Agent SDK to 0.3.178 2026-06-15 21:37:45 +00:00
alexglynn
a5e5d3b82e
fix(parse-sdk-options): prevent shell-quote from collapsing unquoted Bash(X:*) rules to bare Bash (#1350)
* fix(parse-sdk-options): prevent shell-quote from collapsing unquoted Bash(X:*) rules to bare Bash

shell-quote's parse() tokenizes unquoted `(`, `)` as control operators
and barewords containing `*` as glob ops, all returned as non-string
objects. parseClaudeArgsToExtraArgs filtered those out, so an unquoted
`--allowedTools View,Bash(gh:*),Bash(cat:*)` collapsed to bare `Bash` —
silently widening scoped permission rules to unrestricted Bash(*).

Escape shell control metachars to Unicode private-use placeholders
before parse() and restore after; extract .pattern from glob ops.
Preserves existing quote/whitespace handling.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* ci: retrigger

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-13 22:45:14 -07:00
GitHub Actions
d5726de019 chore: bump Claude Code to 2.1.177 and Agent SDK to 0.3.177 2026-06-13 01:25:48 +00:00
GitHub Actions
56fa348258 chore: bump Claude Code to 2.1.176 and Agent SDK to 0.3.176 2026-06-12 21:54:44 +00:00
GitHub Actions
0cb4f3e5e7 chore: bump Claude Code to 2.1.175 and Agent SDK to 0.3.175 2026-06-12 04:24:54 +00:00
looooown
eba921ff6f
docs: fix execution file parsing example (#1297) 2026-06-11 21:19:57 -07:00
Stephen Cobbe
84d317e8f9
fix: break SDK iterator after result message to prevent hang (#1339)
In some workflow contexts — reliably reproducible for us on
pull_request-triggered runs of this action — the Claude Agent SDK
query() async iterator does not close after the terminal result
message is emitted. The for-await loop in runClaudeWithSdk blocks
indefinitely after Claude has finished its work, until the workflow's
timeout-minutes cap kills the job.

Symptoms observed in production (4× in our scan-reviewer workflow):
- Claude completes successfully: SDK emits { type: "result",
  subtype: "success", ... } with the cost / turns / duration set.
- The action then sits with zero log output for the rest of
  timeout-minutes (we measured 18-19 min of dead time after result).
- The job is cancelled at timeout. writeExecutionFile is never
  called → no claude-execution-output.json → cost-tracker and other
  post-steps see nothing.
- Run shows as cancelled, even though Claude did its work and any
  verdict it posted via gh tools already landed.

Author-mode (workflow_dispatch) runs from the same codebase
terminate cleanly the same day, so the hang is specific to certain
event triggers.

By SDK contract the result message is terminal — no further messages
follow. Break out of the loop immediately after capturing it,
regardless of whether the upstream iterator ever closes. If the SDK
is later fixed to close cleanly in all contexts, this break becomes
a no-op.
2026-06-11 21:17:47 -07:00
GitHub Actions
ebcdfe6dc6 chore: bump Claude Code to 2.1.174 and Agent SDK to 0.3.174 2026-06-12 01:17:25 +00:00
GitHub Actions
0f97b95b65 chore: bump Claude Code to 2.1.173 and Agent SDK to 0.3.173 2026-06-11 05:43:00 +00:00
GitHub Actions
eee73e2ae5 chore: bump Claude Code to 2.1.172 and Agent SDK to 0.3.172 2026-06-10 21:01:40 +00:00
GitHub Actions
11ba60486e chore: bump Claude Code to 2.1.170 and Agent SDK to 0.3.170 2026-06-09 17:27:26 +00:00
GitHub Actions
593d7a5c4e chore: bump Claude Code to 2.1.169 and Agent SDK to 0.3.169 2026-06-08 21:57:59 +00:00
GitHub Actions
fbda2eb1bd chore: bump Claude Code to 2.1.168 and Agent SDK to 0.3.168 2026-06-06 23:42:46 +00:00
GitHub Actions
64de744025 chore: bump Claude Code to 2.1.167 and Agent SDK to 0.3.167 2026-06-06 01:34:14 +00:00
GitHub Actions
410165836e chore: bump Claude Code to 2.1.166 and Agent SDK to 0.3.166 2026-06-06 00:56:12 +00:00
GitHub Actions
41ea7642c1 chore: bump Claude Code to 2.1.165 and Agent SDK to 0.3.165 2026-06-05 05:45:57 +00:00
GitHub Actions
0b1b620029 chore: bump Claude Code to 2.1.163 and Agent SDK to 0.3.163 2026-06-04 21:54:01 +00:00
GitHub Actions
70a6e5256e chore: bump Claude Code to 2.1.162 and Agent SDK to 0.3.162 2026-06-03 21:32:44 +00:00
GitHub Actions
36a69b6a90 chore: bump Claude Code to 2.1.161 and Agent SDK to 0.3.161 2026-06-02 21:59:11 +00:00
ant-kurt
dc081a3809
chore: bump actions/setup-node from v4.4.0 to v6.4.0 (Node.js 24) (#1377)
* chore: bump actions/setup-node from v4.4.0 to v6.4.0 (Node.js 24)

setup-node v4 runs on the deprecated Node.js 20 action runtime, producing
a deprecation warning on every workflow run that uses base-action. v6 runs
on Node 24. This only changes the action's own runtime — the node-version
it installs for user code is unaffected.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Disable setup-node v5+ automatic package-manager caching

Preserves v4 behavior: caching only when use_node_cache=true.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: ant-kurt <209710463+ant-kurt@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 12:02:35 -07:00
Ashwin Bhat
420335da51
Add workload identity federation support to base-action (#1378)
* Add workload identity federation support to base-action

Move the workload identity module into base-action so the standalone
action can fetch and refresh the GitHub OIDC identity token itself, and
expose the same federation inputs as the outer action. Switch the
base-action test workflows from the anthropic_api_key secret to the
federation repo variables and grant them id-token: write.

* Verify MCP test tool invocation instead of init connection status

MCP servers can connect asynchronously, so the init event may report a
server as pending. Check that the server is registered at init, then
assert the test tool was actually called and returned its response.
Also pass the MCP config through claude_args --mcp-config, replacing the
removed mcp_config input.
2026-06-02 11:52:23 -07:00
GitHub Actions
7f37f2e373 chore: bump Claude Code to 2.1.160 and Agent SDK to 0.3.160 2026-06-02 02:11:04 +00:00
GitHub Actions
fb53c379a0 chore: bump Claude Code to 2.1.159 and Agent SDK to 0.3.159 2026-05-31 19:43:36 +00:00
GitHub Actions
c5c315c8a1 chore: bump Claude Code to 2.1.158 and Agent SDK to 0.3.158 2026-05-30 02:42:43 +00:00
GitHub Actions
f809dea0ba chore: bump Claude Code to 2.1.157 and Agent SDK to 0.3.157 2026-05-29 20:21:24 +00:00
GitHub Actions
0fb1b8f303 chore: bump Claude Code to 2.1.156 and Agent SDK to 0.3.156 2026-05-29 01:43:14 +00:00
GitHub Actions
3d4c9fde8e chore: bump Claude Code to 2.1.154 and Agent SDK to 0.3.154 2026-05-28 18:02:04 +00:00
GitHub Actions
324957b26b chore: bump Claude Code to 2.1.153 and Agent SDK to 0.3.153 2026-05-28 00:52:58 +00:00
GitHub Actions
73c91f04a8 chore: bump Claude Code to 2.1.152 and Agent SDK to 0.3.152 2026-05-27 01:31:47 +00:00
GitHub Actions
787c5a0ce9 chore: bump Claude Code to 2.1.150 and Agent SDK to 0.3.150 2026-05-23 04:04:43 +00:00
GitHub Actions
bbfaf8e1ff chore: bump Claude Code to 2.1.149 and Agent SDK to 0.3.149 2026-05-22 22:10:12 +00:00
GitHub Actions
4481e6d3c7 chore: bump Claude Code to 2.1.148 and Agent SDK to 0.3.148 2026-05-22 01:17:47 +00:00
Ashwin Bhat
661a6fefbd
Add Workload Identity Federation (OIDC) authentication support (#1338)
* Add workload identity federation auth support

Adds anthropic_federation_rule_id, anthropic_organization_id,
anthropic_service_account_id, anthropic_workspace_id, and
anthropic_oidc_audience inputs. When the federation rule and organization
are set, the action fetches the workflow's GitHub Actions OIDC token,
writes it to a file in RUNNER_TEMP, keeps it refreshed during execution,
and points the Claude Code CLI at it via ANTHROPIC_IDENTITY_TOKEN_FILE so
the CLI can exchange it for a short-lived access token instead of using a
static API key.

* Add WIF example workflow and base-action federation docs

* Default workload identity OIDC audience to https://api.anthropic.com
2026-05-21 15:19:15 -07:00
GitHub Actions
c9d66afb17 chore: bump Claude Code to 2.1.147 and Agent SDK to 0.3.147 2026-05-21 20:40:16 +00:00
GitHub Actions
20c8abf165 chore: bump Claude Code to 2.1.146 and Agent SDK to 0.3.146 2026-05-21 01:52:44 +00:00
GitHub Actions
ca89df3d42 chore: bump Claude Code to 2.1.145 and Agent SDK to 0.3.145 2026-05-19 22:21:48 +00:00
GitHub Actions
24492741e0 chore: bump Claude Code to 2.1.144 and Agent SDK to 0.3.144 2026-05-19 00:49:28 +00:00