Repository: nektos/act (language: go)

Issue:
The pre-entrypoint and post-entrypoint of Docker Actions are not Executed
### Bug report info

```plain text
act version:            0.2.63
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 6
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/user/.config/act/actrc:
                -P ubuntu-latest=catthehacker/ubuntu:act-latest
                -P ubuntu-22.04=catthehacker/ubuntu:act-22.04
                -P ubuntu-20.04=catthehacker/ubuntu:act-20.04
                -P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
        Go version:            go1.21.10
        Module path:           github.com/nektos/act
        Main version:          (devel)
        Main path:             github.com/nektos/act
        Main checksum:         
        Build settings:
                -buildmode:           exe
                -compiler:            gc
                -ldflags:             -s -w -X main.version=0.2.63 -X main.commit=c959fdd58835195916386b44a87632151a1b491a -X main.date=2024-06-01T02:17:39Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         c959fdd58835195916386b44a87632151a1b491a
                vcs.time:             2024-06-01T02:17:21Z
                vcs.modified:         false
Docker Engine:
        Engine version:        26.1.3
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Manjaro Linux
        OS type:               linux
        OS version:            
        OS arch:               x86_64
        OS kernel:             6.1.92-1-MANJARO
        OS CPU:                6
        OS memory:             7926 MB
        Security options:
                name=seccomp,profile=builtin
                name=cgroupns
```


### Command used with act

```sh
git clone git@github.com:MarkTurney/workflow-testing.git
cd workflow-testing
act
```


### Describe issue

When running a Docker Action from act, the "entrypoint" is run as expected, but the "pre-entrypoint" and "post-entrypoint" fail to run.

I have included a custom [Workflow](https://github.com/MarkTurney/workflow-testing/blob/master/.github/workflows/testing.yaml) and custom [Docker Action](https://github.com/MarkTurney/docker-action) that replicate the issue.

I have a [sample run on github.com](https://github.com/MarkTurney/workflow-testing/actions/runs/9187947374/job/25266684616) of the workflow that successfully runs the Docker Action's "pre-entrypoint" and "post-entrypoint" as expected.

Below is a screengrab of that same workflow successfully running the Docker Action's "pre-entrypoint" as "Pre test custom docker action" and "post-entrypoint" as "Post test custom docker action".

<img width="934" alt="github-workflow-success" src="https://github.com/nektos/act/assets/4324877/264f8ddc-fda6-4fc7-9f73-46ec88fa4ae7">

Below is a screengrab of running act from the terminal that demonstrates that the Docker Action's "pre-entrypoint" and "post-entrypoint" are not run.

<img width="956" alt="act-missing-pre-and-post-entrypoints" src="https://github.com/nektos/act/assets/4324877/ce4908aa-8e58-4012-b215-77300ec642b2">

Below is a screengrab of the same workflow running in [Forgejo](https://forgejo.org/docs/v1.20/user/actions/) using act that also demonstrates that the Docker Action's "pre-entrypoint" and "post-entrypoint" are skipped.

<img width="664" alt="forgejo-missing-pre-and-post-entrypoints" src="https://github.com/nektos/act/assets/4324877/9c789b83-720a-4038-91ea-8e8cb2819d2b">

### Link to GitHub repository

https://github.com/MarkTurney/docker-action/tree/master

### Workflow content

```yml
on: [push]
jobs:
  build-job:
    runs-on: ubuntu-latest
    steps:
    - name: test custom docker action
      id: test-custom-docker-action
      uses: MarkTurney/docker-action@v1.0.8
    - run: ls -all ~
```


### Relevant log output

```sh
   ~/work/github/workflow-testing    master  act -v                                                                       ✔ 
DEBU[0000] Handling container host and socket           
DEBU[0000] Defaulting container socket to DOCKER_HOST   
INFO[0000] Using docker host 'unix:///var/run/docker.sock', and daemon socket 'unix:///var/run/docker.sock' 
DEBU[0000] Loading environment from /home/user/work/github/workflow-testing/.env 
DEBU[0000] Conditional GET for notices etag=d0292ccb-76f3-47a3-8ae2-9b45c8679c80 
DEBU[0000] Loading action inputs from /home/user/work/github/workflow-testing/.input 
DEBU[0000] Loading secrets from /home/user/work/github/workflow-testing/.secrets 
DEBU[0000] Loading vars from /home/user/work/github/workflow-testing/.vars 
DEBU[0000] Evaluated matrix inclusions: map[]           
DEBU[0000] Loading workflows from '/home/user/work/github/workflow-testing/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'testing.yaml' in '/home/user/work/github/workflow-testing/.github/workflows/testing.yaml' 
DEBU[0000] Reading workflow '/home/user/work/github/workflow-testing/.github/workflows/testing.yaml' 
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: 2024-06-13 14:47:05.940716833 +0400 +04 m=+0.012569040  module=artifactcache
DEBU[0000] Plan Stages: [0xc000412468]                  
DEBU[0000] Stages Runs: [build-job]                     
DEBU[0000] Job.Name: build-job                          
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}       
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    5 14} 
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}            
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}    
DEBU[0000] Job.Steps: test custom docker action         
DEBU[0000] Job.Steps: ls -all ~                         
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: b3949a8cbd65f8487de43b394c63c25ba77af7ec 
DEBU[0000] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec' 
DEBU[0000] using github ref: refs/heads/master          
DEBU[0000] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec 
DEBU[0000] Detected CPUs: 6                             
[testing.yaml/build-job] [DEBUG] evaluating expression 'success()'
[testing.yaml/build-job] [DEBUG] expression 'success()' evaluated to 'true'
[testing.yaml/build-job] 🚀  Start image=catthehacker/ubuntu:act-latest
DEBU[0000] Parallel tasks (0) below minimum, setting to 1 
[testing.yaml/build-job]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=true
[testing.yaml/build-job] [DEBUG]   🐳  docker pull catthehacker/ubuntu:act-latest
[testing.yaml/build-job] [DEBUG] pulling image 'docker.io/catthehacker/ubuntu:act-latest' ()
DEBU[0001] Saving notices etag=d0292ccb-76f3-47a3-8ae2-9b45c8679c80 
DEBU[0001] No new notices                               
[testing.yaml/build-job] [DEBUG] Pulling from catthehacker/ubuntu :: act-latest
[testing.yaml/build-job] [DEBUG] Digest: sha256:3f91660c0a49e28ad9f0b0c289f7907caa687a21e2ddfe86ec6ca4c23da48ef4 :: 
[testing.yaml/build-job] [DEBUG] Status: Image is up to date for catthehacker/ubuntu:act-latest :: 
DEBU[0002] Parallel tasks (0) below minimum, setting to 1 
[testing.yaml/build-job]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[testing.yaml/build-job] [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=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:act-latest Volumes:map[] WorkingDir:/home/user/work/github/workflow-testing Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[testing.yaml/build-job] [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:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 Target:/home/user/work/github/workflow-testing ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[testing.yaml/build-job] [DEBUG] input.NetworkAliases ==> [build-job]
[testing.yaml/build-job] [DEBUG] Created container name=act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 id=88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234 from image catthehacker/ubuntu:act-latest (platform: )
[testing.yaml/build-job] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[testing.yaml/build-job]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] network="host"
[testing.yaml/build-job] [DEBUG] Starting container: 88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234
[testing.yaml/build-job] [DEBUG] Started container: 88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/event.json len:2
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act/'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job]   ☁  git clone 'https://github.com/MarkTurney/docker-action' # ref=v1.0.8
[testing.yaml/build-job] [DEBUG]   cloning https://github.com/MarkTurney/docker-action to /home/user/.cache/act/MarkTurney-docker-action@v1.0.8
[testing.yaml/build-job] [DEBUG] Cloned https://github.com/MarkTurney/docker-action to /home/user/.cache/act/MarkTurney-docker-action@v1.0.8
[testing.yaml/build-job] [DEBUG] Checked out v1.0.8
[testing.yaml/build-job] [DEBUG] Read action &{Docker Action Testing  testing docker actions map[] map[] {docker map[]   always()  always() Dockerfile /entrypoint.sh [] []} { }} from 'Unknown'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.122.52:33619/ CI:true GITHUB_ACTION:test-custom-docker-action GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1.0.8 GITHUB_ACTION_REPOSITORY:MarkTurney/docker-action 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:build-job GITHUB_REF:refs/heads/master GITHUB_REF_NAME:master GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:MarkTurney/workflow-testing GITHUB_REPOSITORY_OWNER:MarkTurney GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_WORKFLOW:testing.yaml GITHUB_WORKSPACE:/home/user/work/github/workflow-testing ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] evaluating expression ''
[testing.yaml/build-job] [DEBUG] expression '' evaluated to 'true'
[testing.yaml/build-job] ⭐ Run Main test custom docker action
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] About to run action &{Docker Action Testing  testing docker actions map[] map[] {docker map[]   always()  always() Dockerfile /entrypoint.sh [] []} { }}
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] type=remote-action actionDir=/home/user/.cache/act/MarkTurney-docker-action@v1.0.8 actionPath= workdir=/home/user/work/github/workflow-testing actionCacheDir=/home/user/.cache/act actionName=MarkTurney-docker-action@v1.0.8 containerActionDir=/var/run/act/actions/MarkTurney-docker-action@v1.0.8
[testing.yaml/build-job] [DEBUG] image 'act-markturney-docker-action-v1-0-8-dockeraction:latest' for architecture '' will be built from context '/home/user/.cache/act/MarkTurney-docker-action@v1.0.8/
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job]   🐳  docker build -t act-markturney-docker-action-v1-0-8-dockeraction:latest /home/user/.cache/act/MarkTurney-docker-action@v1.0.8/
[testing.yaml/build-job] [DEBUG] Building image from '/home/user/.cache/act/MarkTurney-docker-action@v1.0.8/'
[testing.yaml/build-job] [DEBUG] Creating archive for build context dir '/home/user/.cache/act/MarkTurney-docker-action@v1.0.8/' with relative dockerfile 'Dockerfile'
[testing.yaml/build-job] [DEBUG] Creating image from context dir '/home/user/.cache/act/MarkTurney-docker-action@v1.0.8/' with tag 'act-markturney-docker-action-v1-0-8-dockeraction:latest' and platform ''
[testing.yaml/build-job] [DEBUG] Step 1/4 : FROM alpine:3.10
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> e7b300aee9f9
[testing.yaml/build-job] [DEBUG] Step 2/4 : RUN echo "#!/bin/sh -l" > /pre-entrypoint.sh   && echo "echo '++++++++ FROM PRE-ENTRYPOINT.sh +++++++++'" >> /pre-entrypoint.sh   && chmod +x /pre-entrypoint.sh
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> Using cache
[testing.yaml/build-job] [DEBUG]  ---> 3994acaae101
[testing.yaml/build-job] [DEBUG] Step 3/4 : RUN echo "#!/bin/sh -l" > /entrypoint.sh   && echo "echo '++++++++ FROM ENTRYPOINT.sh +++++++++'" >> /entrypoint.sh   && chmod +x /entrypoint.sh
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> Using cache
[testing.yaml/build-job] [DEBUG]  ---> 40c7ea3f7690
[testing.yaml/build-job] [DEBUG] Step 4/4 : RUN echo "#!/bin/sh -l" > /post-entrypoint.sh   && echo "echo '++++++++ FROM POST-ENTRYPOINT.sh +++++++++'" >> /post-entrypoint.sh   && chmod +x /post-entrypoint.sh
[testing.yaml/build-job] [DEBUG] 
[testing.yaml/build-job] [DEBUG]  ---> Using cache
[testing.yaml/build-job] [DEBUG]  ---> c00981404cab
[testing.yaml/build-job] [DEBUG] Unable to handle line: {"aux":{"ID":"sha256:c00981404cabe4841bb1683b8b9289d03d0d6473041ec465a8620041d08a8060"}}
[testing.yaml/build-job] [DEBUG] Successfully built c00981404cab
[testing.yaml/build-job] [DEBUG] Successfully tagged act-markturney-docker-action-v1-0-8-dockeraction:latest
[testing.yaml/build-job]   🐳  docker pull image=act-markturney-docker-action-v1-0-8-dockeraction:latest platform= username= forcePull=false
[testing.yaml/build-job] [DEBUG]   🐳  docker pull act-markturney-docker-action-v1-0-8-dockeraction:latest
[testing.yaml/build-job] [DEBUG] Image exists? true
[testing.yaml/build-job]   🐳  docker create image=act-markturney-docker-action-v1-0-8-dockeraction:latest platform= entrypoint=["/entrypoint.sh"] cmd=[] network="container:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53"
[testing.yaml/build-job] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[GITHUB_SERVER_URL=https://github.com GITHUB_STATE=/var/run/act/workflow/statecmd.txt ACTIONS_CACHE_URL=http://192.168.122.52:33619/ GITHUB_RUN_ID=1 GITHUB_ACTION_REPOSITORY=MarkTurney/docker-action GITHUB_EVENT_NAME=push GITHUB_WORKSPACE=/home/user/work/github/workflow-testing GITHUB_JOB=build-job GITHUB_BASE_REF= GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_WORKFLOW=testing.yaml GITHUB_RUN_NUMBER=1 GITHUB_REPOSITORY=MarkTurney/workflow-testing GITHUB_STEP_SUMMARY=/var/run/act/workflow/SUMMARY.md GITHUB_SHA=b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_REF_NAME=master GITHUB_API_URL=https://api.github.com GITHUB_OUTPUT=/var/run/act/workflow/outputcmd.txt CI=true GITHUB_ACTION=test-custom-docker-action GITHUB_ACTION_PATH= GITHUB_HEAD_REF= GITHUB_ACTIONS=true GITHUB_REPOSITORY_OWNER=MarkTurney RUNNER_PERFLOG=/dev/null GITHUB_ACTOR=nektos/act GITHUB_RETENTION_DAYS=0 GITHUB_REF_TYPE=branch ImageOS=ubuntu20 ACT=true GITHUB_ACTION_REF=v1.0.8 GITHUB_EVENT_PATH=/var/run/act/workflow/event.json GITHUB_ENV=/var/run/act/workflow/envs.txt GITHUB_REF=refs/heads/master RUNNER_TRACKING_ID= GITHUB_PATH=/var/run/act/workflow/pathcmd.txt RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:act-markturney-docker-action-v1-0-8-dockeraction:latest Volumes:map[] WorkingDir:/home/user/work/github/workflow-testing Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[testing.yaml/build-job] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:container:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 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:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53 Target:/home/user/work/github/workflow-testing ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[testing.yaml/build-job] [DEBUG] input.NetworkAliases ==> []
[testing.yaml/build-job] [DEBUG] Created container name=act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c4-6811d2c6ba49a7c7aaaacf693b306ad3b59464e7f028cc636b64b2f3c3464564 id=19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef from image act-markturney-docker-action-v1-0-8-dockeraction:latest (platform: )
[testing.yaml/build-job] [DEBUG] ENV ==> [GITHUB_SERVER_URL=https://github.com GITHUB_STATE=/var/run/act/workflow/statecmd.txt ACTIONS_CACHE_URL=http://192.168.122.52:33619/ GITHUB_RUN_ID=1 GITHUB_ACTION_REPOSITORY=MarkTurney/docker-action GITHUB_EVENT_NAME=push GITHUB_WORKSPACE=/home/user/work/github/workflow-testing GITHUB_JOB=build-job GITHUB_BASE_REF= GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_WORKFLOW=testing.yaml GITHUB_RUN_NUMBER=1 GITHUB_REPOSITORY=MarkTurney/workflow-testing GITHUB_STEP_SUMMARY=/var/run/act/workflow/SUMMARY.md GITHUB_SHA=b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_REF_NAME=master GITHUB_API_URL=https://api.github.com GITHUB_OUTPUT=/var/run/act/workflow/outputcmd.txt CI=true GITHUB_ACTION=test-custom-docker-action GITHUB_ACTION_PATH= GITHUB_HEAD_REF= GITHUB_ACTIONS=true GITHUB_REPOSITORY_OWNER=MarkTurney RUNNER_PERFLOG=/dev/null GITHUB_ACTOR=nektos/act GITHUB_RETENTION_DAYS=0 GITHUB_REF_TYPE=branch ImageOS=ubuntu20 ACT=true GITHUB_ACTION_REF=v1.0.8 GITHUB_EVENT_PATH=/var/run/act/workflow/event.json GITHUB_ENV=/var/run/act/workflow/envs.txt GITHUB_REF=refs/heads/master RUNNER_TRACKING_ID= GITHUB_PATH=/var/run/act/workflow/pathcmd.txt RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp]
[testing.yaml/build-job]   🐳  docker run image=act-markturney-docker-action-v1-0-8-dockeraction:latest platform= entrypoint=["/entrypoint.sh"] cmd=[] network="container:act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53"
[testing.yaml/build-job] [DEBUG] Starting container: 19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef
| ++++++++ FROM ENTRYPOINT.sh +++++++++
[testing.yaml/build-job] [DEBUG] Started container: 19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef
[testing.yaml/build-job] [DEBUG] Return status: 0
[testing.yaml/build-job] [DEBUG] Removed container: 19436a9df7b6da0309e4bfb2695ccf15eca6bed37ca3d82e453e619c2480a1ef
[testing.yaml/build-job]   ✅  Success - Main test custom docker action
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.122.52:33619/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: 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:build-job GITHUB_REF:refs/heads/master GITHUB_REF_NAME:master GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:MarkTurney/workflow-testing GITHUB_REPOSITORY_OWNER:MarkTurney GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b3949a8cbd65f8487de43b394c63c25ba77af7ec GITHUB_WORKFLOW:testing.yaml GITHUB_WORKSPACE:/home/user/work/github/workflow-testing ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] evaluating expression ''
[testing.yaml/build-job] [DEBUG] expression '' evaluated to 'true'
[testing.yaml/build-job] ⭐ Run Main ls -all ~
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act'
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] Wrote command 

ls -all ~

 to 'workflow/1'
[testing.yaml/build-job] [DEBUG] Writing entry to tarball workflow/1 len:11
[testing.yaml/build-job] [DEBUG] Extracting content to '/var/run/act'
[testing.yaml/build-job]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=
[testing.yaml/build-job] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1]'
[testing.yaml/build-job] [DEBUG] Working directory '/home/user/work/github/workflow-testing'
| total 32
| drwx------ 1 root root 4096 Jun  8 12:46 .
| drwxr-xr-x 1 root root 4096 Jun 13 10:47 ..
| -rw-r--r-- 1 root root 3106 Oct 15  2021 .bashrc
| drwx------ 3 root root 4096 Jun  8 12:42 .launchpadlib
| drwxr-xr-x 3 root root 4096 Jun  8 12:46 .npm
| -rw-r--r-- 1 root root  161 Jul  9  2019 .profile
| drwx------ 2 root root 4096 Jun  8 12:44 .ssh
| -rw-r--r-- 1 root root  337 Jun  8 12:46 .wget-hsts
[testing.yaml/build-job]   ✅  Success - Main ls -all ~
[testing.yaml/build-job] Cleaning up container for job build-job
[testing.yaml/build-job] [DEBUG] Removed container: 88156413fd570b6b6fe6305be9feac911bdef30c79c62fd41e15c1b1b7f6b234
[testing.yaml/build-job] [DEBUG]   🐳  docker volume rm act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53
[testing.yaml/build-job] [DEBUG]   🐳  docker volume rm act-testing-yaml-build-job-9513bf46012484b85ffc23ac4e871cd160c478fbc735b1781ca7210f57b9ed53-env
[testing.yaml/build-job] 🏁  Job succeeded
[testing.yaml/build-job] [DEBUG] Loading revision from git directory
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
[testing.yaml/build-job] [DEBUG] HEAD points to 'b3949a8cbd65f8487de43b394c63c25ba77af7ec'
[testing.yaml/build-job] [DEBUG] using github ref: refs/heads/master
[testing.yaml/build-job] [DEBUG] Found revision: b3949a8cbd65f8487de43b394c63c25ba77af7ec
```


### Additional information

_No response_


Discussion / hints:

Fix patch:
diff --git a/pkg/model/action.go b/pkg/model/action.go
index 6da142e005d..9336b6c146a 100644
--- a/pkg/model/action.go
+++ b/pkg/model/action.go
@@ -49,17 +49,19 @@ const (
 
 // ActionRuns are a field in Action
 type ActionRuns struct {
-	Using      ActionRunsUsing   `yaml:"using"`
-	Env        map[string]string `yaml:"env"`
-	Main       string            `yaml:"main"`
-	Pre        string            `yaml:"pre"`
-	PreIf      string            `yaml:"pre-if"`
-	Post       string            `yaml:"post"`
-	PostIf     string            `yaml:"post-if"`
-	Image      string            `yaml:"image"`
-	Entrypoint string            `yaml:"entrypoint"`
-	Args       []string          `yaml:"args"`
-	Steps      []Step            `yaml:"steps"`
+	Using          ActionRunsUsing   `yaml:"using"`
+	Env            map[string]string `yaml:"env"`
+	Main           string            `yaml:"main"`
+	Pre            string            `yaml:"pre"`
+	PreIf          string            `yaml:"pre-if"`
+	Post           string            `yaml:"post"`
+	PostIf         string            `yaml:"post-if"`
+	Image          string            `yaml:"image"`
+	PreEntrypoint  string            `yaml:"pre-entrypoint"`
+	Entrypoint     string            `yaml:"entrypoint"`
+	PostEntrypoint string            `yaml:"post-entrypoint"`
+	Args           []string          `yaml:"args"`
+	Steps          []Step            `yaml:"steps"`
 }
 
 // Action describes a metadata file for GitHub actions. The metadata filename must be either action.yml or action.yaml. The data in the metadata file defines the inputs, outputs and main entrypoint for your action.
diff --git a/pkg/runner/action.go b/pkg/runner/action.go
index 75b2a332ec5..a19e58f1eb2 100644
--- a/pkg/runner/action.go
+++ b/pkg/runner/action.go
@@ -190,7 +190,7 @@ func runActionImpl(step actionStep, actionDir string, remoteAction *remoteAction
 			if remoteAction == nil {
 				location = containerActionDir
 			}
-			return execAsDocker(ctx, step, actionName, location, remoteAction == nil)
+			return execAsDocker(ctx, step, actionName, location, remoteAction == nil, "entrypoint")
 		case model.ActionRunsUsingComposite:
 			if err := maybeCopyToActionDir(ctx, step, actionDir, actionPath, containerActionDir); err != nil {
 				return err
@@ -243,7 +243,7 @@ func removeGitIgnore(ctx context.Context, directory string) error {
 // TODO: break out parts of function to reduce complexicity
 //
 //nolint:gocyclo
-func execAsDocker(ctx context.Context, step actionStep, actionName string, basedir string, localAction bool) error {
+func execAsDocker(ctx context.Context, step actionStep, actionName string, basedir string, localAction bool, entrypointType string) error {
 	logger := common.Logger(ctx)
 	rc := step.getRunContext()
 	action := step.getActionModel()
@@ -319,13 +319,24 @@ func execAsDocker(ctx context.Context, step actionStep, actionName string, based
 		cmd = action.Runs.Args
 		evalDockerArgs(ctx, step, action, &cmd)
 	}
-	entrypoint := strings.Fields(eval.Interpolate(ctx, step.getStepModel().With["entrypoint"]))
+
+	entrypoint := strings.Fields(eval.Interpolate(ctx, step.getStepModel().With[entrypointType]))
 	if len(entrypoint) == 0 {
-		if action.Runs.Entrypoint != "" {
+		if entrypointType == "pre-entrypoint" && action.Runs.PreEntrypoint != "" {
+			entrypoint, err = shellquote.Split(action.Runs.PreEntrypoint)
+			if err != nil {
+				return err
+			}
+		} else if entrypointType == "entrypoint" && action.Runs.Entrypoint != "" {
 			entrypoint, err = shellquote.Split(action.Runs.Entrypoint)
 			if err != nil {
 				return err
 			}
+		} else if entrypointType == "post-entrypoint" && action.Runs.PostEntrypoint != "" {
+			entrypoint, err = shellquote.Split(action.Runs.PostEntrypoint)
+			if err != nil {
+				return err
+			}
 		} else {
 			entrypoint = nil
 		}
@@ -488,11 +499,13 @@ func shouldRunPreStep(step actionStep) common.Conditional {
 func hasPreStep(step actionStep) common.Conditional {
 	return func(ctx context.Context) bool {
 		action := step.getActionModel()
-		return action.Runs.Using == model.ActionRunsUsingComposite ||
+		return (action.Runs.Using == model.ActionRunsUsingComposite) ||
 			((action.Runs.Using == model.ActionRunsUsingNode12 ||
 				action.Runs.Using == model.ActionRunsUsingNode16 ||
 				action.Runs.Using == model.ActionRunsUsingNode20) &&
-				action.Runs.Pre != "")
+				action.Runs.Pre != "") ||
+			(action.Runs.Using == model.ActionRunsUsingDocker &&
+				action.Runs.PreEntrypoint != "")
 	}
 }
 
@@ -505,30 +518,33 @@ func runPreStep(step actionStep) common.Executor {
 		stepModel := step.getStepModel()
 		action := step.getActionModel()
 
-		switch action.Runs.Using {
-		case model.ActionRunsUsingNode12, model.ActionRunsUsingNode16, model.ActionRunsUsingNode20:
-			// defaults in pre steps were missing, however provided inputs are available
-			populateEnvsFromInput(ctx, step.getEnv(), action, rc)
-			// todo: refactor into step
-			var actionDir string
-			var actionPath string
-			if _, ok := step.(*stepActionRemote); ok {
-				actionPath = newRemoteAction(stepModel.Uses).Path
-				actionDir = fmt.Sprintf("%s/%s", rc.ActionCacheDir(), safeFilename(stepModel.Uses))
-			} else {
-				actionDir = filepath.Join(rc.Config.Workdir, stepModel.Uses)
-				actionPath = ""
-			}
+		// defaults in pre steps were missing, however provided inputs are available
+		populateEnvsFromInput(ctx, step.getEnv(), action, rc)
 
-			actionLocation := ""
-			if actionPath != "" {
-				actionLocation = path.Join(actionDir, actionPath)
-			} else {
-				actionLocation = actionDir
-			}
+		// todo: refactor into step
+		var actionDir string
+		var actionPath string
+		var remoteAction *stepActionRemote
+		if remote, ok := step.(*stepActionRemote); ok {
+			actionPath = newRemoteAction(stepModel.Uses).Path
+			actionDir = fmt.Sprintf("%s/%s", rc.ActionCacheDir(), safeFilename(stepModel.Uses))
+			remoteAction = remote
+		} else {
+			actionDir = filepath.Join(rc.Config.Workdir, stepModel.Uses)
+			actionPath = ""
+		}
 
-			_, containerActionDir := getContainerActionPaths(stepModel, actionLocation, rc)
+		actionLocation := ""
+		if actionPath != "" {
+			actionLocation = path.Join(actionDir, actionPath)
+		} else {
+			actionLocation = actionDir
+		}
+
+		actionName, containerActionDir := getContainerActionPaths(stepModel, actionLocation, rc)
 
+		switch action.Runs.Using {
+		case model.ActionRunsUsingNode12, model.ActionRunsUsingNode16, model.ActionRunsUsingNode20:
 			if err := maybeCopyToActionDir(ctx, step, actionDir, actionPath, containerActionDir); err != nil {
 				return err
 			}
@@ -540,6 +556,13 @@ func runPreStep(step actionStep) common.Executor {
 
 			return rc.execJobContainer(containerArgs, *step.getEnv(), "", "")(ctx)
 
+		case model.ActionRunsUsingDocker:
+			location := actionLocation
+			if remoteAction == nil {
+				location = containerActionDir
+			}
+			return execAsDocker(ctx, step, actionName, location, remoteAction == nil, "pre-entrypoint")
+
 		case model.ActionRunsUsingComposite:
 			if step.getCompositeSteps() == nil {
 				step.getCompositeRunContext(ctx)
@@ -584,11 +607,13 @@ func shouldRunPostStep(step actionStep) common.Conditional {
 func hasPostStep(step actionStep) common.Conditional {
 	return func(ctx context.Context) bool {
 		action := step.getActionModel()
-		return action.Runs.Using == model.ActionRunsUsingComposite ||
+		return (action.Runs.Using == model.ActionRunsUsingComposite) ||
 			((action.Runs.Using == model.ActionRunsUsingNode12 ||
 				action.Runs.Using == model.ActionRunsUsingNode16 ||
 				action.Runs.Using == model.ActionRunsUsingNode20) &&
-				action.Runs.Post != "")
+				action.Runs.Post != "") ||
+			(action.Runs.Using == model.ActionRunsUsingDocker &&
+				action.Runs.PostEntrypoint != "")
 	}
 }
 
@@ -604,9 +629,11 @@ func runPostStep(step actionStep) common.Executor {
 		// todo: refactor into step
 		var actionDir string
 		var actionPath string
-		if _, ok := step.(*stepActionRemote); ok {
+		var remoteAction *stepActionRemote
+		if remote, ok := step.(*stepActionRemote); ok {
 			actionPath = newRemoteAction(stepModel.Uses).Path
 			actionDir = fmt.Sprintf("%s/%s", rc.ActionCacheDir(), safeFilename(stepModel.Uses))
+			remoteAction = remote
 		} else {
 			actionDir = filepath.Join(rc.Config.Workdir, stepModel.Uses)
 			actionPath = ""
@@ -619,7 +646,7 @@ func runPostStep(step actionStep) common.Executor {
 			actionLocation = actionDir
 		}
 
-		_, containerActionDir := getContainerActionPaths(stepModel, actionLocation, rc)
+		actionName, containerActionDir := getContainerActionPaths(stepModel, actionLocation, rc)
 
 		switch action.Runs.Using {
 		case model.ActionRunsUsingNode12, model.ActionRunsUsingNode16, model.ActionRunsUsingNode20:
@@ -634,6 +661,13 @@ func runPostStep(step actionStep) common.Executor {
 
 			return rc.execJobContainer(containerArgs, *step.getEnv(), "", "")(ctx)
 
+		case model.ActionRunsUsingDocker:
+			location := actionLocation
+			if remoteAction == nil {
+				location = containerActionDir
+			}
+			return execAsDocker(ctx, step, actionName, location, remoteAction == nil, "post-entrypoint")
+
 		case model.ActionRunsUsingComposite:
 			if err := maybeCopyToActionDir(ctx, step, actionDir, actionPath, containerActionDir); err != nil {
 				return err


Test patch: