Commit 8d65bc9
feat: hide /tmp/gh-aw/mcp-logs/ from agent containers (#706)
* Initial plan
* feat: hide /tmp/gh-aw/mcp-logs/ directory from agent container
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* test: improve mcp-logs tests to verify mount protection
* fix: create /tmp/gh-aw/mcp-logs before Docker mount (#707)
* Initial plan
* fix: create /tmp/gh-aw/mcp-logs directory before mounting
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* test: add test for /tmp/gh-aw/mcp-logs directory creation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* fix: use tmpfs to hide /tmp/gh-aw/mcp-logs directory from containers (#709)
* Initial plan
* fix: revert file approach, need directory solution for mcp-logs
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* fix: use tmpfs to hide /tmp/gh-aw/mcp-logs directory from container
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* test: verify tmpfs mount solution works end-to-end
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* fix: use 0o777 permissions for mcp-logs and squid-logs directories (#710)
* Initial plan
* fix: set /tmp/gh-aw/mcp-logs to world-writable (0o777)
Fixes permission denied error when GitHub Actions workflows try to create
subdirectories in /tmp/gh-aw/mcp-logs after AWF runs with sudo.
Changes:
- Set directory permissions to 0o777 (rwxrwxrwx) instead of 0o755
- Explicitly call chmodSync after mkdirSync to bypass umask
- Fix permissions if directory already exists from previous run
- Update test to verify 777 permissions
Root cause: When AWF runs with sudo (e.g., --enable-chroot), it creates
/tmp/gh-aw/mcp-logs owned by root. With 755 permissions, non-root users
cannot create subdirectories. Using 777 allows workflows to create
subdirectories like /tmp/gh-aw/mcp-logs/safeoutputs without sudo.
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
* fix: ensure squid logs dir has 777 permissions
Apply same fix to squidLogsDir for consistency with mcpLogsDir.
Explicitly calls chmodSync to bypass umask effects.
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>1 parent 6a967cd commit 8d65bc9
4 files changed
Lines changed: 109 additions & 0 deletions
File tree
- examples
- src
- tests/integration
File mode changed.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1495 | 1495 | | |
1496 | 1496 | | |
1497 | 1497 | | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
| 1512 | + | |
| 1513 | + | |
| 1514 | + | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
1498 | 1521 | | |
1499 | 1522 | | |
1500 | 1523 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
721 | 732 | | |
722 | 733 | | |
723 | 734 | | |
| |||
861 | 872 | | |
862 | 873 | | |
863 | 874 | | |
| 875 | + | |
| 876 | + | |
864 | 877 | | |
865 | 878 | | |
866 | 879 | | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
867 | 897 | | |
868 | 898 | | |
869 | 899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
297 | 353 | | |
0 commit comments