Repository: nektos/act (language: go)

Issue:
`github.action_ref` is empty when accessed within `env` in a composite action
### Bug report info

```plain text
act version:            0.2.50
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
        $HOME/.docker/run/docker.sock
Config files:
        /Users/jonj/.actrc:
                -P ubuntu-latest=node:16-buster-slim
                -P ubuntu-22.04=node:16-bullseye-slim
                -P ubuntu-20.04=node:16-buster-slim
                -P ubuntu-18.04=node:16-buster-slim
Build info:
        Go version:            go1.21.0
        Module path:           command-line-arguments
        Main version:
        Main path:
        Main checksum:
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -X main.version=0.2.50
                DefaultGODEBUG:       panicnil=1
                CGO_ENABLED:          1
                CGO_CFLAGS:
                CGO_CPPFLAGS:
                CGO_CXXFLAGS:
                CGO_LDFLAGS:
                GOARCH:               arm64
                GOOS:                 darwin
Docker Engine:
        Engine version:        24.0.5
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         cgroupfs
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Docker Desktop
        OS type:               linux
        OS version:
        OS arch:               aarch64
        OS kernel:             5.15.49-linuxkit-pr
        OS CPU:                6
        OS memory:             7851 MB
        Security options:
                name=seccomp,profile=unconfined
                name=cgroupns
```


### Command used with act

```sh
act -W .github/workflows/push.yml
```


### Describe issue

When using `github.action_ref` within `env` inside a composite action, it always comes back as blank. The simple [jenseng/dynamic-uses/action_ref_example@debug-act-bug](https://github.com/jenseng/dynamic-uses/blob/debug-act-bug/action_ref_example/action.yml) action demonstrates the problem:

```yaml
name: action_ref example
description: action_ref example
runs:
  using: composite
  steps:
    - env:
        action_ref: ${{ github.action_ref }}
      run: |
        echo "action_ref=${{ env.action_ref }}"
      shell: bash
```

This is inconsistent with actions/runner, which does correctly resolve `github.action_ref` when used within `env`:

```
2023-09-22T19:37:45.0080675Z Requested labels: ubuntu-latest
2023-09-22T19:37:45.0080935Z Job defined at: NetflixUI/nflx-actions/.github/workflows/push.yml@refs/heads/act-bug-repro
2023-09-22T19:37:45.0081090Z Waiting for a runner to pick up this job...
2023-09-22T19:37:45.7032952Z Job is waiting for a hosted runner to come online.
2023-09-22T19:37:48.7110067Z Job is about to start running on the hosted runner: GitHub Actions 3 (hosted)
2023-09-22T19:37:50.9770131Z Current runner version: '2.309.0'
2023-09-22T19:37:50.9796803Z ##[group]Operating System
2023-09-22T19:37:50.9797614Z Ubuntu
2023-09-22T19:37:50.9798048Z 22.04.3
2023-09-22T19:37:50.9798327Z LTS
2023-09-22T19:37:50.9798567Z ##[endgroup]
2023-09-22T19:37:50.9798912Z ##[group]Runner Image
2023-09-22T19:37:50.9799255Z Image: ubuntu-22.04
2023-09-22T19:37:50.9799654Z Version: 20230917.1.0
2023-09-22T19:37:50.9800117Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230917.1/images/linux/Ubuntu2204-Readme.md
2023-09-22T19:37:50.9800762Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230917.1
2023-09-22T19:37:50.9801200Z ##[endgroup]
2023-09-22T19:37:50.9801497Z ##[group]Runner Image Provisioner
2023-09-22T19:37:50.9801894Z 2.0.299.1
2023-09-22T19:37:50.9802186Z ##[endgroup]
2023-09-22T19:37:50.9802812Z ##[group]GITHUB_TOKEN Permissions
2023-09-22T19:37:50.9804502Z Contents: read
2023-09-22T19:37:50.9804942Z Metadata: read
2023-09-22T19:37:50.9805455Z Packages: read
2023-09-22T19:37:50.9805927Z ##[endgroup]
2023-09-22T19:37:50.9809474Z Secret source: Actions
2023-09-22T19:37:50.9810016Z Prepare workflow directory
2023-09-22T19:37:51.0592996Z Prepare all required actions
2023-09-22T19:37:51.0789929Z Getting action download info
2023-09-22T19:37:51.3560996Z Download action repository 'jenseng/dynamic-uses@debug-act-bug' (SHA:19e9de163540e2ff162d7e394a4e851525ac0099)
2023-09-22T19:37:52.0005526Z Complete job name: act-bug
2023-09-22T19:37:52.1169465Z ##[group]Run jenseng/dynamic-uses/action_ref_example@debug-act-bug
2023-09-22T19:37:52.1170183Z ##[endgroup]
2023-09-22T19:37:52.1576853Z ##[group]Run echo "action_ref=debug-act-bug"
2023-09-22T19:37:52.1577377Z [36;1mecho "action_ref=debug-act-bug"[0m
2023-09-22T19:37:52.1645854Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2023-09-22T19:37:52.1646283Z env:
2023-09-22T19:37:52.1646645Z   action_ref: debug-act-bug
2023-09-22T19:37:52.1647009Z ##[endgroup]
2023-09-22T19:37:52.1935105Z action_ref=debug-act-bug
2023-09-22T19:37:52.2282667Z Cleaning up orphan processes
```

On a related note, it would be ideal to have access to `github.action_ref` within `run` and elsewhere, but even actions/runner [doesn't support that](https://github.com/actions/runner/issues/2473), so keeping this bug report scoped to just the `env` context inconsistency.

### Link to GitHub repository

_No response_

### Workflow content

```yml
on: push
jobs:
  act-bug:
    runs-on: ubuntu-latest
    steps:
      - uses: jenseng/dynamic-uses/action_ref_example@debug-act-bug
```


### Relevant log output

```sh
[push.yml/act-bug] 🚀  Start image=node:16-buster-slim
[push.yml/act-bug]   🐳  docker pull image=node:16-buster-slim platform= username= forcePull=true
[push.yml/act-bug]   🐳  docker create image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[push.yml/act-bug]   🐳  docker run image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[push.yml/act-bug]   ☁  git clone 'https://github.com/jenseng/dynamic-uses' # ref=debug-act-bug
[push.yml/act-bug] ⭐ Run Pre jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug]   ✅  Success - Pre jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] ⭐ Run Main jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug]   🐳  docker cp src=/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/ dst=/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] ⭐ Run Main echo "action_ref="
[push.yml/act-bug]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0-composite-0.sh] user= workdir=
| action_ref=
[push.yml/act-bug]   ✅  Success - Main echo "action_ref="
[push.yml/act-bug]   ✅  Success - Main jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] ⭐ Run Post jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug]   🐳  docker cp src=/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/ dst=/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug]   ✅  Success - Post jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] 🏁  Job succeeded
```


### Additional information

_No response_


Discussion / hints:
Here's a verbose log. What's interesting is that if you look at the 4 `[DEBUG] setupEnv =>` lines, you'll see that `GITHUB_ACTION_REF` has the expected value the first two times and last time, but is blank the third time, so `action_ref` ends up being empty. Also interesting that on the third time `GITHUB_ACTION_PATH` is set to the local checkout of the action (whereas it's blank the other times).

```sh
WARN  ⚠ You are using Apple M-series chip and you have not specified container architecture, you might encounter issues while running act. If so, try running it with '--container-architecture linux/amd64'. ⚠
DEBU[0000] Loading environment from /Users/jonj/projects/nflx-actions/.env
DEBU[0000] Loading action inputs from /Users/jonj/projects/nflx-actions/.input
DEBU[0000] Loading secrets from /Users/jonj/projects/nflx-actions/.secrets
DEBU[0000] Loading vars from /Users/jonj/projects/nflx-actions/.vars
DEBU[0000] Evaluated matrix inclusions: map[]
DEBU[0000] Loading workflow '/Users/jonj/projects/nflx-actions/.github/workflows/push.yml'
DEBU[0000] Reading workflow '/Users/jonj/projects/nflx-actions/.github/workflows/push.yml'
DEBU[0000] Unable to load etag from /Users/jonj/.cache/act/.notices.etag: &{%!e(string=open) %!e(string=/Users/jonj/.cache/act/.notices.etag) %!e(syscall.Errno=2)}
DEBU[0000] Preparing plan with all jobs
DEBU[0000] Using the only detected workflow event: push
DEBU[0000] Planning jobs for event: push
DEBU[0000] gc: 2023-09-22 15:04:10.152021 -0600 MDT m=+0.003591793  module=artifactcache
DEBU[0000] Plan Stages: [0x140000c0330]
DEBU[0000] Stages Runs: [act-bug]
DEBU[0000] Job.Name: act-bug
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    4 14}
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}
DEBU[0000] Job.Steps: jenseng/dynamic-uses/action_ref_example@debug-act-bug
DEBU[0000] Job.TimeoutMinutes:
DEBU[0000] Job.Services: map[]
DEBU[0000] Job.Strategy: <nil>
DEBU[0000] Job.RawContainer: {0 0    <nil> []    0 0}
DEBU[0000] Job.Defaults.Run.Shell:
DEBU[0000] Job.Defaults.Run.WorkingDirectory:
DEBU[0000] Job.Outputs: map[]
DEBU[0000] Job.Uses:
DEBU[0000] Job.With: map[]
DEBU[0000] Job.Result:
DEBU[0000] Empty Strategy, matrixes=[map[]]
DEBU[0000] Job Matrices: [map[]]
DEBU[0000] Runner Matrices: map[]
DEBU[0000] Final matrix after applying user inclusions '[map[]]'
DEBU[0000] Loading revision from git directory
DEBU[0000] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
DEBU[0000] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
DEBU[0000] using github ref: refs/heads/act-bug-repro
DEBU[0000] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
DEBU[0000] Detected CPUs: 12
[push.yml/act-bug] [DEBUG] evaluating expression 'success()'
[push.yml/act-bug] [DEBUG] expression 'success()' evaluated to 'true'
[push.yml/act-bug] 🚀  Start image=node:16-buster-slim
[push.yml/act-bug]   🐳  docker pull image=node:16-buster-slim platform= username= forcePull=true
[push.yml/act-bug] [DEBUG]   🐳  docker pull node:16-buster-slim
[push.yml/act-bug] [DEBUG] pulling image 'docker.io/library/node:16-buster-slim' ()
[push.yml/act-bug] [DEBUG] Pulling from library/node :: 16-buster-slim
[push.yml/act-bug] [DEBUG] Digest: sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f ::
[push.yml/act-bug] [DEBUG] Status: Image is up to date for node:16-buster-slim ::
[push.yml/act-bug]   🐳  docker create image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[push.yml/act-bug] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=ARM64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:node:16-buster-slim Volumes:map[] WorkingDir:/Users/jonj/projects/nflx-actions Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[push.yml/act-bug] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-push-yml-act-bug-f4d0a2a78b09fc1e5837904ce88f33e32a0a72f4402fa2c6ab553feb897771f5-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-push-yml-act-bug-f4d0a2a78b09fc1e5837904ce88f33e32a0a72f4402fa2c6ab553feb897771f5 Target:/Users/jonj/projects/nflx-actions ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[push.yml/act-bug] [DEBUG] Created container name=act-push-yml-act-bug-f4d0a2a78b09fc1e5837904ce88f33e32a0a72f4402fa2c6ab553feb897771f5 id=24d3151d821a8855ec6f076b814c10d589e186da11668f0e78339316f3dcfb53 from image node:16-buster-slim (platform: )
[push.yml/act-bug] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=ARM64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[push.yml/act-bug]   🐳  docker run image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[push.yml/act-bug] [DEBUG] Starting container: 24d3151d821a8855ec6f076b814c10d589e186da11668f0e78339316f3dcfb53
[push.yml/act-bug] [DEBUG] Started container: 24d3151d821a8855ec6f076b814c10d589e186da11668f0e78339316f3dcfb53
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/event.json len:2
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[push.yml/act-bug] [DEBUG] Extracting content to '/var/run/act/'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug]   ☁  git clone 'https://github.com/jenseng/dynamic-uses' # ref=debug-act-bug
[push.yml/act-bug] [DEBUG]   cloning https://github.com/jenseng/dynamic-uses to /Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug
DEBU[0001] Saving notices etag=3fbf4223-d1d1-46ef-a9f7-732487030604
[push.yml/act-bug] [DEBUG] Enumerating objects: 63, done.
Counting objects: 100% (63/63), done.bjects:   1% (1/63)
Compressing objects: 100% (43/43), done.bjects:   2% (1/43)
[push.yml/act-bug] [DEBUG] Total 63 (delta 21), reused 54 (delta 15), pack-reused 0
[push.yml/act-bug] [DEBUG] Provided ref is not a sha. Checking out branch before pulling changes
[push.yml/act-bug] [DEBUG] Cloned https://github.com/jenseng/dynamic-uses to /Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Provided ref is not a sha. Updating branch ref after pull
[push.yml/act-bug] [DEBUG] Checked out debug-act-bug
[push.yml/act-bug] [DEBUG] Read action &{action_ref example  action_ref example map[] map[] {composite map[]   always()  always()   [] [{ {0 0    <nil> []    0 0}   echo "action_ref=${{ env.action_ref }}"
  bash {4 0 !!map   <nil> [0x140003c1360 0x140003c14a0]    7 9} map[]  }]} { }} from 'Unknown'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.24.80.104:55182/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:debug-act-bug GITHUB_ACTION_REPOSITORY:jenseng/dynamic-uses GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:act-bug GITHUB_REF:refs/heads/act-bug-repro GITHUB_REF_NAME:act-bug-repro GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:NetflixUI/nflx-actions GITHUB_REPOSITORY_OWNER:NetflixUI GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:1b716e0754fa4f03682f7856a7c0c1707c22d486 GITHUB_TOKEN: GITHUB_WORKFLOW:push.yml GITHUB_WORKSPACE:/Users/jonj/projects/nflx-actions ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] evaluating expression 'always()'
[push.yml/act-bug] [DEBUG] expression 'always()' evaluated to 'true'
[push.yml/act-bug] ⭐ Run Pre jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[push.yml/act-bug] [DEBUG] Extracting content to '/var/run/act'
[push.yml/act-bug] [DEBUG] run pre step for 'jenseng/dynamic-uses/action_ref_example@debug-act-bug'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug]   ✅  Success - Pre jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.24.80.104:55182/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:debug-act-bug GITHUB_ACTION_REPOSITORY:jenseng/dynamic-uses GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:act-bug GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/act-bug-repro GITHUB_REF_NAME:act-bug-repro GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:NetflixUI/nflx-actions GITHUB_REPOSITORY_OWNER:NetflixUI GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:1b716e0754fa4f03682f7856a7c0c1707c22d486 GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_TOKEN: GITHUB_WORKFLOW:push.yml GITHUB_WORKSPACE:/Users/jonj/projects/nflx-actions ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] evaluating expression ''
[push.yml/act-bug] [DEBUG] expression '' evaluated to 'true'
[push.yml/act-bug] ⭐ Run Main jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[push.yml/act-bug] [DEBUG] Extracting content to '/var/run/act'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] About to run action &{action_ref example  action_ref example map[] map[] {composite map[]   always()  always()   [] [{ {0 0    <nil> []    0 0}   echo "action_ref=${{ env.action_ref }}"
  bash {4 0 !!map   <nil> [0x140003c1360 0x140003c14a0]    7 9} map[]  }]} { }}
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] type=remote-action actionDir=/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug actionPath=action_ref_example workdir=/Users/jonj/projects/nflx-actions actionCacheDir=/Users/jonj/.cache/act actionName=jenseng-dynamic-uses-action_ref_example@debug-act-bug/action_ref_example containerActionDir=/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/action_ref_example
[push.yml/act-bug] [DEBUG] /var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug]   🐳  docker cp src=/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/ dst=/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] [DEBUG] Writing tarball /var/folders/8y/5rdbnjms66z98q6csgck59yw0000gn/T/act2026962250 from /Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] [DEBUG] Stripping prefix:/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/ src:/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] [DEBUG] Extracting content from '/var/folders/8y/5rdbnjms66z98q6csgck59yw0000gn/T/act2026962250' to '/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] expression '${{ github.action_ref }}' rewritten to 'format('{0}', github.action_ref)'
[push.yml/act-bug] [DEBUG] evaluating expression 'format('{0}', github.action_ref)'
[push.yml/act-bug] [DEBUG] expression 'format('{0}', github.action_ref)' evaluated to '%!t(string=)'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.24.80.104:55182/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH:/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/action_ref_example GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:composite-job GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/act-bug-repro GITHUB_REF_NAME:act-bug-repro GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:NetflixUI/nflx-actions GITHUB_REPOSITORY_OWNER:NetflixUI GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:1b716e0754fa4f03682f7856a7c0c1707c22d486 GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_TOKEN: GITHUB_WORKFLOW:push.yml GITHUB_WORKSPACE:/Users/jonj/projects/nflx-actions ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: action_ref:]
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] evaluating expression ''
[push.yml/act-bug] [DEBUG] expression '' evaluated to 'true'
[push.yml/act-bug] [DEBUG] expression 'echo "action_ref=${{ env.action_ref }}"
' rewritten to 'format('echo "action_ref={0}"
', env.action_ref)'
[push.yml/act-bug] [DEBUG] evaluating expression 'format('echo "action_ref={0}"
', env.action_ref)'
[push.yml/act-bug] [DEBUG] expression 'format('echo "action_ref={0}"
', env.action_ref)' evaluated to '%!t(string=echo "action_ref="
)'
[push.yml/act-bug] ⭐ Run Main echo "action_ref="
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[push.yml/act-bug] [DEBUG] Extracting content to '/var/run/act'
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] expression 'echo "action_ref=${{ env.action_ref }}"
' rewritten to 'format('echo "action_ref={0}"
', env.action_ref)'
[push.yml/act-bug] [DEBUG] evaluating expression 'format('echo "action_ref={0}"
', env.action_ref)'
[push.yml/act-bug] [DEBUG] expression 'format('echo "action_ref={0}"
', env.action_ref)' evaluated to '%!t(string=echo "action_ref="
)'
[push.yml/act-bug] [DEBUG] Wrote command

echo "action_ref="


 to 'workflow/0-composite-0.sh'
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/0-composite-0.sh len:21
[push.yml/act-bug] [DEBUG] Extracting content to '/var/run/act'
[push.yml/act-bug]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0-composite-0.sh] user= workdir=
[push.yml/act-bug] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/0-composite-0.sh]'
[push.yml/act-bug] [DEBUG] Working directory '/Users/jonj/projects/nflx-actions'
| action_ref=
[push.yml/act-bug]   ✅  Success - Main echo "action_ref="
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug]   ✅  Success - Main jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://172.24.80.104:55182/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:debug-act-bug GITHUB_ACTION_REPOSITORY:jenseng/dynamic-uses GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:act-bug GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/act-bug-repro GITHUB_REF_NAME:act-bug-repro GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:NetflixUI/nflx-actions GITHUB_REPOSITORY_OWNER:NetflixUI GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:1b716e0754fa4f03682f7856a7c0c1707c22d486 GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_TOKEN: GITHUB_WORKFLOW:push.yml GITHUB_WORKSPACE:/Users/jonj/projects/nflx-actions ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] evaluating expression 'always()'
[push.yml/act-bug] [DEBUG] expression 'always()' evaluated to 'true'
[push.yml/act-bug] ⭐ Run Post jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[push.yml/act-bug] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[push.yml/act-bug] [DEBUG] Extracting content to '/var/run/act'
[push.yml/act-bug] [DEBUG] run post step for 'jenseng/dynamic-uses/action_ref_example@debug-act-bug'
[push.yml/act-bug] [DEBUG] /var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug]   🐳  docker cp src=/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/ dst=/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] [DEBUG] Writing tarball /var/folders/8y/5rdbnjms66z98q6csgck59yw0000gn/T/act4286164989 from /Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] [DEBUG] Stripping prefix:/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/ src:/Users/jonj/.cache/act/jenseng-dynamic-uses-action_ref_example@debug-act-bug/
[push.yml/act-bug] [DEBUG] Extracting content from '/var/folders/8y/5rdbnjms66z98q6csgck59yw0000gn/T/act4286164989' to '/var/run/act/actions/jenseng-dynamic-uses-action_ref_example@debug-act-bug/'
[push.yml/act-bug]   ✅  Success - Post jenseng/dynamic-uses/action_ref_example@debug-act-bug
[push.yml/act-bug] [DEBUG] Removed container: 24d3151d821a8855ec6f076b814c10d589e186da11668f0e78339316f3dcfb53
[push.yml/act-bug] [DEBUG]   🐳  docker volume rm act-push-yml-act-bug-f4d0a2a78b09fc1e5837904ce88f33e32a0a72f4402fa2c6ab553feb897771f5
[push.yml/act-bug] [DEBUG]   🐳  docker volume rm act-push-yml-act-bug-f4d0a2a78b09fc1e5837904ce88f33e32a0a72f4402fa2c6ab553feb897771f5-env
[push.yml/act-bug] 🏁  Job succeeded
[push.yml/act-bug] [DEBUG] Loading revision from git directory
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
[push.yml/act-bug] [DEBUG] HEAD points to '1b716e0754fa4f03682f7856a7c0c1707c22d486'
[push.yml/act-bug] [DEBUG] using github ref: refs/heads/act-bug-repro
[push.yml/act-bug] [DEBUG] Found revision: 1b716e0754fa4f03682f7856a7c0c1707c22d486
```
Believe me you don't want to allow script injection. I think you are refering here to the absense of the feature of nektos/act to access locally defined envs via action expressions.

More secure, less likely broken in act
```
name: action_ref example
description: action_ref example
runs:
  using: composite
  steps:
    - env:
        action_ref: ${{ github.action_ref }}
      run: |
        echo "action_ref=$action_ref"
      shell: bash
```
Ok also the more secure variant is broken...
good point on the script injection (😆 😬)... that being said, there is something odd here specifically around `github.action_ref` (and `github.action_repository`) being blank, since locally set env variables do generally seem to work with either approach (`echo {{ env.foo }}` or `echo "$foo"`) 
Still new to the codebase, but it appears this bug might be caused by the `compositeRunContext` creating a `ExpressionEvaluator` that doesn't consider `sar.getGithubContext`'s additions of `ActionRepository`/`ActionRef`; it's just using `rc.getGithubContext`
The other places in the verbose log where those variables appear correctly, it seems the code is explicitly calling the step's `getGithubContext`
I always burn my fingers if I touch composite actions in act again. My contributed code has been refactored in the past and got buggy, due to my lazyiness in writing tests in the past...

Fix patch:
diff --git a/pkg/runner/action_composite.go b/pkg/runner/action_composite.go
index 0fc1fd89c96..2e36d2e46fb 100644
--- a/pkg/runner/action_composite.go
+++ b/pkg/runner/action_composite.go
@@ -37,6 +37,9 @@ func evaluateCompositeInputAndEnv(ctx context.Context, parent *RunContext, step
 			env[envKey] = ee.Interpolate(ctx, input.Default)
 		}
 	}
+	gh := step.getGithubContext(ctx)
+	env["GITHUB_ACTION_REPOSITORY"] = gh.ActionRepository
+	env["GITHUB_ACTION_REF"] = gh.ActionRef
 
 	return env
 }
@@ -53,11 +56,11 @@ func newCompositeRunContext(ctx context.Context, parent *RunContext, step action
 		Name:    parent.Name,
 		JobName: parent.JobName,
 		Run: &model.Run{
-			JobID: "composite-job",
+			JobID: parent.Run.JobID,
 			Workflow: &model.Workflow{
 				Name: parent.Run.Workflow.Name,
 				Jobs: map[string]*model.Job{
-					"composite-job": {},
+					parent.Run.JobID: {},
 				},
 			},
 		},
diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go
index 51a7c9f1ed3..2c55e8a88f6 100644
--- a/pkg/runner/run_context.go
+++ b/pkg/runner/run_context.go
@@ -627,6 +627,8 @@ func (rc *RunContext) getGithubContext(ctx context.Context) *model.GithubContext
 		Token:            rc.Config.Token,
 		Job:              rc.Run.JobID,
 		ActionPath:       rc.ActionPath,
+		ActionRepository: rc.Env["GITHUB_ACTION_REPOSITORY"],
+		ActionRef:        rc.Env["GITHUB_ACTION_REF"],
 		RepositoryOwner:  rc.Config.Env["GITHUB_REPOSITORY_OWNER"],
 		RetentionDays:    rc.Config.Env["GITHUB_RETENTION_DAYS"],
 		RunnerPerflog:    rc.Config.Env["RUNNER_PERFLOG"],


Test patch:
diff --git a/pkg/runner/runner_test.go b/pkg/runner/runner_test.go
index 4034e96e34c..8d0ee771eaa 100644
--- a/pkg/runner/runner_test.go
+++ b/pkg/runner/runner_test.go
@@ -237,6 +237,7 @@ func TestRunEvent(t *testing.T) {
 		{workdir, "uses-composite-with-error", "push", "Job 'failing-composite-action' failed", platforms, secrets},
 		{workdir, "uses-nested-composite", "push", "", platforms, secrets},
 		{workdir, "remote-action-composite-js-pre-with-defaults", "push", "", platforms, secrets},
+		{workdir, "remote-action-composite-action-ref", "push", "", platforms, secrets},
 		{workdir, "uses-workflow", "push", "", platforms, map[string]string{"secret": "keep_it_private"}},
 		{workdir, "uses-workflow", "pull_request", "", platforms, map[string]string{"secret": "keep_it_private"}},
 		{workdir, "uses-docker-url", "push", "", platforms, secrets},
diff --git a/pkg/runner/testdata/remote-action-composite-action-ref/push.yml b/pkg/runner/testdata/remote-action-composite-action-ref/push.yml
new file mode 100644
index 00000000000..65876511d6d
--- /dev/null
+++ b/pkg/runner/testdata/remote-action-composite-action-ref/push.yml
@@ -0,0 +1,8 @@
+name: remote-action-composite-action-ref
+on: push
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: nektos/act-test-actions/composite-assert-action-ref-action@main