fix: runner env vars — HOME, AWS_DEFAULT_REGION, PATH in runner config

Ensures act_runner passes correct environment to job steps
so AWS CLI can find IMDS credentials and Go/Node are on PATH.
This commit is contained in:
2026-05-23 12:04:00 +01:00
parent e728a8d819
commit 29957c6239
3 changed files with 9 additions and 1 deletions
Binary file not shown.
Binary file not shown.
+9 -1
View File
@@ -158,9 +158,13 @@ cleanup() {
trap cleanup EXIT
# Source Go/Node paths from AMI
export PATH=$PATH:/usr/local/go/bin
export PATH=$PATH:/usr/local/go/bin:/usr/local/bin
export HOME=/root
# Ensure AWS SDK can find instance profile credentials via IMDS
# act_runner may change HOME — force credential chain to use IMDS
export AWS_EC2_METADATA_DISABLED=false
# Create proper working directory for act_runner
mkdir -p /opt/runner && cd /opt/runner
@@ -178,6 +182,10 @@ log:
runner:
capacity: 1
timeout: 30m
envs:
HOME: /root
AWS_DEFAULT_REGION: eu-west-1
PATH: /usr/local/go/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
host:
workdir_parent: /opt/runner/work
RUNCFG