Commit d22c053
committed
Fix runner hook execution by inheriting system environment
The GitHub Actions runner was failing to execute job hooks with
'sh: command not found' error. This was because the runner process
was started with only RUNNER_ALLOW_RUNASROOT in its environment,
missing PATH and other system variables needed to locate and
execute shell commands.
Fixed by inheriting the system environment when starting the runner
process, ensuring PATH and other critical environment variables are
available.1 parent 32c9080 commit d22c053
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
440 | 443 | | |
441 | | - | |
| 444 | + | |
442 | 445 | | |
443 | 446 | | |
444 | 447 | | |
| |||
0 commit comments