1
0
Fork 0
mirror of synced 2026-06-05 18:28:19 +00:00
harden-runner/src
Nikolai Emil Damm 376d25a97f
fix: detect ubuntu-slim runners early and bail out
ubuntu-slim runners (Hosted Compute Agent Docker containers) are
GitHub-hosted but lack the standard USER environment variable set
on full VM-based runners. This causes chownForFolder to fail with
'chown: invalid user: undefined'.

Instead of patching chownForFolder, detect ubuntu-slim early
informative message, matching the existing patterns for isDocker(),
isARCRunner(), and other unsupported runner types.

Fixes #627

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-11 12:16:00 +02:00
..
arc-runner.test.ts fixed test case 2025-06-05 11:44:37 +05:30
arc-runner.ts self-hosted: refactored block-policy apply logic 2025-06-05 11:18:09 +05:30
cache.ts Release v2.5.0 (#325) 2023-07-24 11:30:49 -07:00
checksum.ts v2.16.1 (#654) 2026-03-30 11:43:08 -07:00
cleanup.ts fix: detect ubuntu-slim runners early and bail out 2026-04-11 12:16:00 +02:00
common.test.ts Release v2.4.1 (#309) 2023-06-19 17:30:27 -07:00
common.ts fix: detect ubuntu-slim runners early and bail out 2026-04-11 12:16:00 +02:00
configs.ts v2.16.1 (#654) 2026-03-30 11:43:08 -07:00
index.ts Release v2.15.0 (#639) 2026-02-24 15:14:57 -08:00
install-agent.ts v2.16.1 (#654) 2026-03-30 11:43:08 -07:00
interfaces.ts Feature/policy store (#656) 2026-04-08 23:47:46 -07:00
policy-utils.test.ts Feature/policy store (#656) 2026-04-08 23:47:46 -07:00
policy-utils.ts Feature/policy store (#656) 2026-04-08 23:47:46 -07:00
setup.ts fix: detect ubuntu-slim runners early and bail out 2026-04-11 12:16:00 +02:00
tls-inspect.test.ts Add tls-inspection capability (#368) 2024-01-29 12:06:18 -08:00
tls-inspect.ts Update isGitHubHosted implementation 2024-06-04 16:59:55 -07:00
utils.ts Release v2.15.0 (#639) 2026-02-24 15:14:57 -08:00