Commit d92b019
fix: use sudo rm -rf in post.js to handle root-owned files in /tmp/gh-aw
Files written by Docker containers or privileged scripts during the job
are owned by root, causing fs.rmSync to fail with EACCES. GitHub-hosted
runners have passwordless sudo, so try `sudo rm -rf` first and fall back
to fs.rmSync for self-hosted runners without sudo.
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/4905a7a0-58f6-4f2f-b856-8cae909dc609
Co-authored-by: pelikhan <[email protected]>1 parent 6a4781d commit d92b019
1 file changed
Lines changed: 21 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
9 | 15 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
17 | 32 | | |
0 commit comments