Commit 2aff0f3
fix: copy get-claude-key.sh to chroot-accessible path (#1508)
* fix: copy get-claude-key.sh to chroot-accessible path
In chroot mode, /usr is bind-mounted from the host (read-only), shadowing
the container's /usr/local/bin/get-claude-key.sh. Claude Code finds the
apiKeyHelper config but the script fails with exit 127 (not found).
Follow the existing one-shot-token.so pattern: copy the script to
/host/tmp/awf-lib/ before chroot activation, then update the apiKeyHelper
config files to reference the chroot-accessible path.
Closes #1507
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update containers/agent/entrypoint.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: overwrite stale apiKeyHelper path instead of erroring
When settings.json persists between AWF runs (e.g. in CI), a previous
run's chroot-adjusted path (/tmp/awf-lib/get-claude-key.sh) causes a
mismatch with the current env var (/usr/local/bin/get-claude-key.sh).
Overwrite with the current value instead of exiting with an error.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent ddfbc43 commit 2aff0f3
1 file changed
Lines changed: 52 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
182 | 197 | | |
183 | | - | |
184 | 198 | | |
185 | 199 | | |
186 | 200 | | |
| |||
426 | 440 | | |
427 | 441 | | |
428 | 442 | | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
429 | 476 | | |
430 | 477 | | |
431 | 478 | | |
| |||
0 commit comments