312 Commits

Author SHA1 Message Date
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
GitHub Actions
b020494b57 chore: bump Claude Code to 2.1.143 and Agent SDK to 0.3.143 2026-05-15 22:29:11 +00:00
GitHub Actions
51ea8ea73a chore: bump Claude Code to 2.1.142 and Agent SDK to 0.3.142 2026-05-14 22:56:05 +00:00
Ashwin Bhat
acfa366ca8
chore: bump pinned Bun to 1.3.14 (#1312)
* chore: bump pinned Bun to 1.3.14

* style: apply prettier to actor/permissions files
2026-05-14 18:55:04 -04:00
JerryLee
1450f658d3
fix: write execution file when SDK throws (#1255) 2026-05-14 15:37:28 -07:00
GitHub Actions
86eb26bf01 chore: bump Claude Code to 2.1.141 and Agent SDK to 0.2.141 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 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 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 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 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 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 2026-05-07 23:49:29 +00:00
GitHub Actions
9db782c3a1 chore: bump Claude Code to 2.1.132 and Agent SDK to 0.2.132 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 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 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 2026-05-04 23:02:42 +00:00
GitHub Actions
fefa07e9c6 chore: bump Claude Code to 2.1.126 and Agent SDK to 0.2.126 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 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 2026-04-28 22:05:53 +00:00
Octavian Guzu
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