[GH-ISSUE #2002] Event payload provided via .json not respected by act #962

Closed
opened 2026-03-01 21:47:45 +03:00 by kerem · 4 comments
Owner

Originally created by @chamaoskurumi on GitHub (Sep 11, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2002

Bug report info

act version:            0.2.49
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
        /var/run/docker.sock
Config files:           
        /home/*******/.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.20.6
        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.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser
                CGO_ENABLED:          0
                GOARCH:               amd64
                GOOS:                 linux
                GOAMD64:              v1
                vcs:                  git
                vcs.revision:         d5d854854651c151ecd914bb6e2e370e0057929a
                vcs.time:             2023-08-01T02:21:38Z
                vcs.modified:         false
Docker Engine:
        Engine version:        24.0.6
        Engine runtime:        runc
        Cgroup version:        2
        Cgroup driver:         systemd
        Storage driver:        overlay2
        Registry URI:          https://index.docker.io/v1/
        OS:                    Pop!_OS 22.04 LTS
        OS type:               linux
        OS version:            22.04
        OS arch:               x86_64
        OS kernel:             6.4.6-76060406-generic
        OS CPU:                8
        OS memory:             15794 MB
        Security options:
                name=apparmor
                name=seccomp,profile=builtin
                name=cgroupns

Command used with act

act -e my_act_event.json

Describe issue

I want to mimic a pull_request from a branch with randomname into the master branch.
Given the workflow, the job/workflow should not be triggered, because it requires the branch to be named feature/*.

Expected

I expect act pull_request -e my_act_event.json or just act -e my_act_event.json not to trigger the workflow and skip.

Observed

act -e my_act_event.json triggers act to run the workflow

Reproducible Example

git clone git@github.com:cplee/github-actions-demo.git

Change the workflow main.yml to the one decribed below.

And add a event payload as json in root:

my_act_event.json

{
    "pull_request": {
      "head": {
        "ref": "randomname"
      },
      "base": {
        "ref": "master"
      }
    }
  }

https://github.com/cplee/github-actions-demo

Workflow content

name: CI
on: 
  pull_request:
    branches:
    - "feature/*"

jobs:
  test:
    runs-on: ubuntu-latest
    if: startsWith(github.ref, 'refs/heads/feature/')
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
    - run: npm install
    - run: npm test

Relevant log output

DEBU[0000] Loading environment from /home/*******/local_git_repos/github-actions-demo/.env 
DEBU[0000] Loading action inputs from /home/*******/local_git_repos/github-actions-demo/.input 
DEBU[0000] Loading secrets from /home/*******/local_git_repos/github-actions-demo/.secrets 
DEBU[0000] Loading vars from /home/*******/local_git_repos/github-actions-demo/.vars 
DEBU[0000] Evaluated matrix inclusions: map[]           
DEBU[0000] Loading workflows from '/home/*******/local_git_repos/github-actions-demo/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'main.yml' in '/home/*******/local_git_repos/github-actions-demo/.github/workflows/main.yml' 
DEBU[0000] Reading workflow '/home/*******/local_git_repos/github-actions-demo/.github/workflows/main.yml' 
DEBU[0000] Conditional GET for notices etag=7ec976db-18d2-429f-a35f-78d4dd68edd6 
DEBU[0000] Preparing plan with all jobs                 
DEBU[0000] Using the only detected workflow event: pull_request 
DEBU[0000] Planning jobs for event: pull_request        
DEBU[0000] Reading event.json from /home/*******/local_git_repos/github-actions-demo/my_act_event.json 
DEBU[0000] gc: 2023-09-11 17:15:33.739962398 +0200 CEST m=+0.007481922  module=artifactcache
DEBU[0000] Plan Stages: [0xc00043d5f0]                  
DEBU[0000] Stages Runs: [test]                          
DEBU[0000] Job.Name: test                               
DEBU[0000] Job.RawNeeds: {0 0    <nil> []    0 0}       
DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest  <nil> []    9 14} 
DEBU[0000] Job.Env: {0 0    <nil> []    0 0}            
DEBU[0000] Job.If: {0 0  success()  <nil> []    0 0}    
DEBU[0000] Job.Steps: actions/checkout@v2               
DEBU[0000] Job.Steps: actions/setup-node@v1             
DEBU[0000] Job.Steps: npm install                       
DEBU[0000] Job.Steps: npm test                          
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] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 
DEBU[0000] Detected CPUs: 8                             
[CI/test] [DEBUG] evaluating expression 'success()'
[CI/test] [DEBUG] expression 'success()' evaluated to 'true'
[CI/test] 🚀  Start image=node:16-buster-slim
[CI/test]   🐳  docker pull image=node:16-buster-slim platform= username= forcePull=true
[CI/test] [DEBUG]   🐳  docker pull node:16-buster-slim
[CI/test] [DEBUG] pulling image 'docker.io/library/node:16-buster-slim' ()
DEBU[0000] Saving notices etag=7ec976db-18d2-429f-a35f-78d4dd68edd6 
DEBU[0000] No new notices                               
[CI/test] [DEBUG] Pulling from library/node :: 16-buster-slim
[CI/test] [DEBUG] Digest: sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f :: 
[CI/test] [DEBUG] Status: Image is up to date for node:16-buster-slim :: 
[CI/test]   🐳  docker create image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[CI/test] [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:node:16-buster-slim Volumes:map[] WorkingDir:/home/*******/local_git_repos/github-actions-demo Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[CI/test] [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-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf Target:/home/*******/local_git_repos/github-actions-demo ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[CI/test] [DEBUG] Created container name=act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf id=434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12 from image node:16-buster-slim (platform: )
[CI/test] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
[CI/test]   🐳  docker run image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[]
[CI/test] [DEBUG] Starting container: 434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12
[CI/test] [DEBUG] Started container: 434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12
[CI/test] [DEBUG] Writing entry to tarball workflow/event.json len:137
[CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[CI/test] [DEBUG] Extracting content to '/var/run/act/'
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Skipping local actions/checkout because workdir was already copied
[CI/test] [DEBUG] skip pre step for 'actions/checkout@v2': no action model available
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v1
[CI/test] [DEBUG]   cloning https://github.com/actions/setup-node to /home/*******/.cache/act/actions-setup-node@v1
[CI/test] [DEBUG] Unable to pull refs/heads/v1: non-fast-forward update
[CI/test] [DEBUG] Cloned https://github.com/actions/setup-node to /home/*******/.cache/act/actions-setup-node@v1
[CI/test] [DEBUG] Checked out v1
[CI/test] [DEBUG] Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js  always()  always()   [] []} { }} from 'Unknown'
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Skipping local actions/checkout because workdir was already copied
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v2 GITHUB_ACTION_REPOSITORY:actions/checkout GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] evaluating expression ''
[CI/test] [DEBUG] expression '' evaluated to 'true'
[CI/test] ⭐ Run Main actions/checkout@v2
[CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[CI/test] [DEBUG] Extracting content to '/var/run/act'
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test]   🐳  docker cp src=/home/*******/local_git_repos/github-actions-demo/. dst=/home/*******/local_git_repos/github-actions-demo
[CI/test] [DEBUG] Writing tarball /tmp/act2895207472 from /home/*******/local_git_repos/github-actions-demo/.
[CI/test] [DEBUG] Stripping prefix:/home/*******/local_git_repos/github-actions-demo/ src:/home/*******/local_git_repos/github-actions-demo/.
[CI/test] [DEBUG] Extracting content from '/tmp/act2895207472' to '/home/*******/local_git_repos/github-actions-demo'
[CI/test]   ✅  Success - Main actions/checkout@v2
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1 GITHUB_ACTION_REPOSITORY:actions/setup-node GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] evaluating expression ''
[CI/test] [DEBUG] expression '' evaluated to 'true'
[CI/test] ⭐ Run Main actions/setup-node@v1
[CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[CI/test] [DEBUG] Extracting content to '/var/run/act'
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js  always()  always()   [] []} { }}
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] type=remote-action actionDir=/home/*******/.cache/act/actions-setup-node@v1 actionPath= workdir=/home/*******/local_git_repos/github-actions-demo actionCacheDir=/home/*******/.cache/act actionName=actions-setup-node@v1 containerActionDir=/var/run/act/actions/actions-setup-node@v1
[CI/test] [DEBUG] Removing /home/*******/.cache/act/actions-setup-node@v1/.gitignore before docker cp
[CI/test] [DEBUG] /var/run/act/actions/actions-setup-node@v1
[CI/test]   🐳  docker cp src=/home/*******/.cache/act/actions-setup-node@v1/ dst=/var/run/act/actions/actions-setup-node@v1/
[CI/test] [DEBUG] Writing tarball /tmp/act2428784742 from /home/*******/.cache/act/actions-setup-node@v1/
[CI/test] [DEBUG] Stripping prefix:/home/*******/.cache/act/actions-setup-node@v1/ src:/home/*******/.cache/act/actions-setup-node@v1/
[CI/test] [DEBUG] Extracting content from '/tmp/act2428784742' to '/var/run/act/actions/actions-setup-node@v1/'
[CI/test] [DEBUG] executing remote job container: [node /var/run/act/actions/actions-setup-node@v1/dist/index.js]
[CI/test]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-node@v1/dist/index.js] user= workdir=
[CI/test] [DEBUG] Exec command '[node /var/run/act/actions/actions-setup-node@v1/dist/index.js]'
[CI/test] [DEBUG] Working directory '/home/*******/local_git_repos/github-actions-demo'
[CI/test]   💬  ::debug::isExplicit: 
[CI/test]   💬  ::debug::explicit? false
[CI/test]   💬  ::debug::evaluating 0 versions
[CI/test]   💬  ::debug::match not found
[CI/test]   💬  ::debug::evaluating 585 versions
[CI/test]   💬  ::debug::matched: v10.24.1
[CI/test]   💬  ::debug::isExplicit: 10.24.1
[CI/test]   💬  ::debug::explicit? true
[CI/test]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/10.24.1/x64
[CI/test]   💬  ::debug::not found
[CI/test]   💬  ::debug::Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.gz
[CI/test]   💬  ::debug::Destination /tmp/db87a19e-4071-45ad-9663-434b9f5f7cad
[CI/test]   💬  ::debug::download complete
[CI/test]   💬  ::debug::Checking tar --version
[CI/test]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/0dbcd04e-b167-44ea-9a7a-df63472c732c -f /tmp/db87a19e-4071-45ad-9663-434b9f5f7cad
[CI/test]   💬  ::debug::Caching tool node 10.24.1 x64
[CI/test]   💬  ::debug::source dir: /tmp/0dbcd04e-b167-44ea-9a7a-df63472c732c/node-v10.24.1-linux-x64
[CI/test]   💬  ::debug::destination /opt/hostedtoolcache/node/10.24.1/x64
[CI/test]   💬  ::debug::finished caching tool
| [command]/opt/hostedtoolcache/node/10.24.1/x64/bin/node --version
| v10.24.1
| [command]/opt/hostedtoolcache/node/10.24.1/x64/bin/npm --version
| 6.14.12
[CI/test]   ❓ add-matcher /run/act/actions/actions-setup-node@v1/.github/tsc.json
[CI/test]   ❓ add-matcher /run/act/actions/actions-setup-node@v1/.github/eslint-stylish.json
[CI/test]   ❓ add-matcher /run/act/actions/actions-setup-node@v1/.github/eslint-compact.json
[CI/test]   ✅  Success - Main actions/setup-node@v1
[CI/test]   ⚙  ::add-path:: /opt/hostedtoolcache/node/10.24.1/x64/bin
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:2 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:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] evaluating expression ''
[CI/test] [DEBUG] expression '' evaluated to 'true'
[CI/test] ⭐ Run Main npm install
[CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[CI/test] [DEBUG] Extracting content to '/var/run/act'
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Wrote command 

npm install

 to 'workflow/2'
[CI/test] [DEBUG] Writing entry to tarball workflow/2 len:13
[CI/test] [DEBUG] Extracting content to '/var/run/act'
[CI/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir=
[CI/test] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2]'
[CI/test] [DEBUG] Working directory '/home/*******/local_git_repos/github-actions-demo'
| added 280 packages from 643 contributors and audited 280 packages in 3.763s
| 
| 24 packages are looking for funding
|   run `npm fund` for details
| 
| found 33 vulnerabilities (15 moderate, 15 high, 3 critical)
|   run `npm audit fix` to fix them, or `npm audit` for details
[CI/test]   ✅  Success - Main npm install
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:3 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:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] evaluating expression ''
[CI/test] [DEBUG] expression '' evaluated to 'true'
[CI/test] ⭐ Run Main npm test
[CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[CI/test] [DEBUG] Extracting content to '/var/run/act'
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93
[CI/test] [DEBUG] Wrote command 

npm test

 to 'workflow/3'
[CI/test] [DEBUG] Writing entry to tarball workflow/3 len:10
[CI/test] [DEBUG] Extracting content to '/var/run/act'
[CI/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir=
[CI/test] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3]'
[CI/test] [DEBUG] Working directory '/home/*******/local_git_repos/github-actions-demo'
| 
| > github-actions-demo@1.0.0 test /home/*******/local_git_repos/github-actions-demo
| > mocha ./tests --recursive
| 
| 
| 
|   GET /
|     ✓ should respond with hello world
| 
| 
|   1 passing (19ms)
| 
[CI/test]   ✅  Success - Main npm test
[CI/test] [DEBUG] skipping post step for 'actions/checkout@v2': no action model available
[CI/test] [DEBUG] Removed container: 434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12
[CI/test] [DEBUG]   🐳  docker volume rm act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf
[CI/test] [DEBUG]   🐳  docker volume rm act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf-env
[CI/test] 🏁  Job succeeded
[CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93

Additional information

Seems like the whole event payload is not respeced by act, despite it being read

Originally created by @chamaoskurumi on GitHub (Sep 11, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2002 ### Bug report info ```plain text act version: 0.2.49 GOOS: linux GOARCH: amd64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock Config files: /home/*******/.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.20.6 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.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser CGO_ENABLED: 0 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: d5d854854651c151ecd914bb6e2e370e0057929a vcs.time: 2023-08-01T02:21:38Z vcs.modified: false Docker Engine: Engine version: 24.0.6 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Pop!_OS 22.04 LTS OS type: linux OS version: 22.04 OS arch: x86_64 OS kernel: 6.4.6-76060406-generic OS CPU: 8 OS memory: 15794 MB Security options: name=apparmor name=seccomp,profile=builtin name=cgroupns ``` ### Command used with act ```sh act -e my_act_event.json ``` ### Describe issue I want to mimic a pull_request from a branch with `randomname` into the `master` branch. Given the workflow, the job/workflow should not be triggered, because it requires the branch to be named `feature/*`. ### Expected I expect `act pull_request -e my_act_event.json` or just `act -e my_act_event.json` not to trigger the workflow and skip. ### Observed `act -e my_act_event.json` triggers act to run the workflow ## Reproducible Example `git clone git@github.com:cplee/github-actions-demo.git` Change the workflow `main.yml` to the one decribed below. And add a event payload as json in root: _my_act_event.json_ ```json { "pull_request": { "head": { "ref": "randomname" }, "base": { "ref": "master" } } } ``` ### Link to GitHub repository https://github.com/cplee/github-actions-demo ### Workflow content ```yml name: CI on: pull_request: branches: - "feature/*" jobs: test: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/heads/feature/') steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - run: npm install - run: npm test ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /home/*******/local_git_repos/github-actions-demo/.env DEBU[0000] Loading action inputs from /home/*******/local_git_repos/github-actions-demo/.input DEBU[0000] Loading secrets from /home/*******/local_git_repos/github-actions-demo/.secrets DEBU[0000] Loading vars from /home/*******/local_git_repos/github-actions-demo/.vars DEBU[0000] Evaluated matrix inclusions: map[] DEBU[0000] Loading workflows from '/home/*******/local_git_repos/github-actions-demo/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'main.yml' in '/home/*******/local_git_repos/github-actions-demo/.github/workflows/main.yml' DEBU[0000] Reading workflow '/home/*******/local_git_repos/github-actions-demo/.github/workflows/main.yml' DEBU[0000] Conditional GET for notices etag=7ec976db-18d2-429f-a35f-78d4dd68edd6 DEBU[0000] Preparing plan with all jobs DEBU[0000] Using the only detected workflow event: pull_request DEBU[0000] Planning jobs for event: pull_request DEBU[0000] Reading event.json from /home/*******/local_git_repos/github-actions-demo/my_act_event.json DEBU[0000] gc: 2023-09-11 17:15:33.739962398 +0200 CEST m=+0.007481922 module=artifactcache DEBU[0000] Plan Stages: [0xc00043d5f0] DEBU[0000] Stages Runs: [test] DEBU[0000] Job.Name: test DEBU[0000] Job.RawNeeds: {0 0 <nil> [] 0 0} DEBU[0000] Job.RawRunsOn: {8 0 !!str ubuntu-latest <nil> [] 9 14} DEBU[0000] Job.Env: {0 0 <nil> [] 0 0} DEBU[0000] Job.If: {0 0 success() <nil> [] 0 0} DEBU[0000] Job.Steps: actions/checkout@v2 DEBU[0000] Job.Steps: actions/setup-node@v1 DEBU[0000] Job.Steps: npm install DEBU[0000] Job.Steps: npm test 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] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 DEBU[0000] Detected CPUs: 8 [CI/test] [DEBUG] evaluating expression 'success()' [CI/test] [DEBUG] expression 'success()' evaluated to 'true' [CI/test] 🚀 Start image=node:16-buster-slim [CI/test] 🐳 docker pull image=node:16-buster-slim platform= username= forcePull=true [CI/test] [DEBUG] 🐳 docker pull node:16-buster-slim [CI/test] [DEBUG] pulling image 'docker.io/library/node:16-buster-slim' () DEBU[0000] Saving notices etag=7ec976db-18d2-429f-a35f-78d4dd68edd6 DEBU[0000] No new notices [CI/test] [DEBUG] Pulling from library/node :: 16-buster-slim [CI/test] [DEBUG] Digest: sha256:3ebf2875c188d22939c6ab080cfb1a4a6248cc86bae600ea8e2326aa03acdb8f :: [CI/test] [DEBUG] Status: Image is up to date for node:16-buster-slim :: [CI/test] 🐳 docker create image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [CI/test] [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:node:16-buster-slim Volumes:map[] WorkingDir:/home/*******/local_git_repos/github-actions-demo Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} [CI/test] [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-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf Target:/home/*******/local_git_repos/github-actions-demo ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>} [CI/test] [DEBUG] Created container name=act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf id=434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12 from image node:16-buster-slim (platform: ) [CI/test] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] [CI/test] 🐳 docker run image=node:16-buster-slim platform= entrypoint=["tail" "-f" "/dev/null"] cmd=[] [CI/test] [DEBUG] Starting container: 434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12 [CI/test] [DEBUG] Started container: 434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12 [CI/test] [DEBUG] Writing entry to tarball workflow/event.json len:137 [CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [CI/test] [DEBUG] Extracting content to '/var/run/act/' [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Skipping local actions/checkout because workdir was already copied [CI/test] [DEBUG] skip pre step for 'actions/checkout@v2': no action model available [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] ☁ git clone 'https://github.com/actions/setup-node' # ref=v1 [CI/test] [DEBUG] cloning https://github.com/actions/setup-node to /home/*******/.cache/act/actions-setup-node@v1 [CI/test] [DEBUG] Unable to pull refs/heads/v1: non-fast-forward update [CI/test] [DEBUG] Cloned https://github.com/actions/setup-node to /home/*******/.cache/act/actions-setup-node@v1 [CI/test] [DEBUG] Checked out v1 [CI/test] [DEBUG] Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js always() always() [] []} { }} from 'Unknown' [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Skipping local actions/checkout because workdir was already copied [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v2 GITHUB_ACTION_REPOSITORY:actions/checkout GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] evaluating expression '' [CI/test] [DEBUG] expression '' evaluated to 'true' [CI/test] ⭐ Run Main actions/checkout@v2 [CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0 [CI/test] [DEBUG] Extracting content to '/var/run/act' [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] 🐳 docker cp src=/home/*******/local_git_repos/github-actions-demo/. dst=/home/*******/local_git_repos/github-actions-demo [CI/test] [DEBUG] Writing tarball /tmp/act2895207472 from /home/*******/local_git_repos/github-actions-demo/. [CI/test] [DEBUG] Stripping prefix:/home/*******/local_git_repos/github-actions-demo/ src:/home/*******/local_git_repos/github-actions-demo/. [CI/test] [DEBUG] Extracting content from '/tmp/act2895207472' to '/home/*******/local_git_repos/github-actions-demo' [CI/test] ✅ Success - Main actions/checkout@v2 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1 GITHUB_ACTION_REPOSITORY:actions/setup-node GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] evaluating expression '' [CI/test] [DEBUG] expression '' evaluated to 'true' [CI/test] ⭐ Run Main actions/setup-node@v1 [CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0 [CI/test] [DEBUG] Extracting content to '/var/run/act' [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] About to run action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js always() always() [] []} { }} [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] type=remote-action actionDir=/home/*******/.cache/act/actions-setup-node@v1 actionPath= workdir=/home/*******/local_git_repos/github-actions-demo actionCacheDir=/home/*******/.cache/act actionName=actions-setup-node@v1 containerActionDir=/var/run/act/actions/actions-setup-node@v1 [CI/test] [DEBUG] Removing /home/*******/.cache/act/actions-setup-node@v1/.gitignore before docker cp [CI/test] [DEBUG] /var/run/act/actions/actions-setup-node@v1 [CI/test] 🐳 docker cp src=/home/*******/.cache/act/actions-setup-node@v1/ dst=/var/run/act/actions/actions-setup-node@v1/ [CI/test] [DEBUG] Writing tarball /tmp/act2428784742 from /home/*******/.cache/act/actions-setup-node@v1/ [CI/test] [DEBUG] Stripping prefix:/home/*******/.cache/act/actions-setup-node@v1/ src:/home/*******/.cache/act/actions-setup-node@v1/ [CI/test] [DEBUG] Extracting content from '/tmp/act2428784742' to '/var/run/act/actions/actions-setup-node@v1/' [CI/test] [DEBUG] executing remote job container: [node /var/run/act/actions/actions-setup-node@v1/dist/index.js] [CI/test] 🐳 docker exec cmd=[node /var/run/act/actions/actions-setup-node@v1/dist/index.js] user= workdir= [CI/test] [DEBUG] Exec command '[node /var/run/act/actions/actions-setup-node@v1/dist/index.js]' [CI/test] [DEBUG] Working directory '/home/*******/local_git_repos/github-actions-demo' [CI/test] 💬 ::debug::isExplicit: [CI/test] 💬 ::debug::explicit? false [CI/test] 💬 ::debug::evaluating 0 versions [CI/test] 💬 ::debug::match not found [CI/test] 💬 ::debug::evaluating 585 versions [CI/test] 💬 ::debug::matched: v10.24.1 [CI/test] 💬 ::debug::isExplicit: 10.24.1 [CI/test] 💬 ::debug::explicit? true [CI/test] 💬 ::debug::checking cache: /opt/hostedtoolcache/node/10.24.1/x64 [CI/test] 💬 ::debug::not found [CI/test] 💬 ::debug::Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.gz [CI/test] 💬 ::debug::Destination /tmp/db87a19e-4071-45ad-9663-434b9f5f7cad [CI/test] 💬 ::debug::download complete [CI/test] 💬 ::debug::Checking tar --version [CI/test] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason. | [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/0dbcd04e-b167-44ea-9a7a-df63472c732c -f /tmp/db87a19e-4071-45ad-9663-434b9f5f7cad [CI/test] 💬 ::debug::Caching tool node 10.24.1 x64 [CI/test] 💬 ::debug::source dir: /tmp/0dbcd04e-b167-44ea-9a7a-df63472c732c/node-v10.24.1-linux-x64 [CI/test] 💬 ::debug::destination /opt/hostedtoolcache/node/10.24.1/x64 [CI/test] 💬 ::debug::finished caching tool | [command]/opt/hostedtoolcache/node/10.24.1/x64/bin/node --version | v10.24.1 | [command]/opt/hostedtoolcache/node/10.24.1/x64/bin/npm --version | 6.14.12 [CI/test] ❓ add-matcher /run/act/actions/actions-setup-node@v1/.github/tsc.json [CI/test] ❓ add-matcher /run/act/actions/actions-setup-node@v1/.github/eslint-stylish.json [CI/test] ❓ add-matcher /run/act/actions/actions-setup-node@v1/.github/eslint-compact.json [CI/test] ✅ Success - Main actions/setup-node@v1 [CI/test] ⚙ ::add-path:: /opt/hostedtoolcache/node/10.24.1/x64/bin [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:2 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:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] evaluating expression '' [CI/test] [DEBUG] expression '' evaluated to 'true' [CI/test] ⭐ Run Main npm install [CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0 [CI/test] [DEBUG] Extracting content to '/var/run/act' [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Wrote command npm install to 'workflow/2' [CI/test] [DEBUG] Writing entry to tarball workflow/2 len:13 [CI/test] [DEBUG] Extracting content to '/var/run/act' [CI/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2] user= workdir= [CI/test] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2]' [CI/test] [DEBUG] Working directory '/home/*******/local_git_repos/github-actions-demo' | added 280 packages from 643 contributors and audited 280 packages in 3.763s | | 24 packages are looking for funding | run `npm fund` for details | | found 33 vulnerabilities (15 moderate, 15 high, 3 critical) | run `npm audit fix` to fix them, or `npm audit` for details [CI/test] ✅ Success - Main npm install [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.2.162:46767/ CI:true GITHUB_ACTION:3 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:master GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:randomname GITHUB_JOB:test GITHUB_REF:refs/pull/%!f(<nil>)/merge GITHUB_REF_NAME:%!f(<nil>)/merge GITHUB_REF_TYPE: GITHUB_REPOSITORY:cplee/github-actions-demo GITHUB_REPOSITORY_OWNER:cplee GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:5c6f585b1f9d8526c8e1672c5f8f00883b895d93 GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/home/*******/local_git_repos/github-actions-demo ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:] [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] evaluating expression '' [CI/test] [DEBUG] expression '' evaluated to 'true' [CI/test] ⭐ Run Main npm test [CI/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [CI/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0 [CI/test] [DEBUG] Extracting content to '/var/run/act' [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 [CI/test] [DEBUG] Wrote command npm test to 'workflow/3' [CI/test] [DEBUG] Writing entry to tarball workflow/3 len:10 [CI/test] [DEBUG] Extracting content to '/var/run/act' [CI/test] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir= [CI/test] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3]' [CI/test] [DEBUG] Working directory '/home/*******/local_git_repos/github-actions-demo' | | > github-actions-demo@1.0.0 test /home/*******/local_git_repos/github-actions-demo | > mocha ./tests --recursive | | | | GET / | ✓ should respond with hello world | | | 1 passing (19ms) | [CI/test] ✅ Success - Main npm test [CI/test] [DEBUG] skipping post step for 'actions/checkout@v2': no action model available [CI/test] [DEBUG] Removed container: 434790e878e9d3c29f4375671f3dab0fb5d7c94736b28cd3cef1cbe7e804cd12 [CI/test] [DEBUG] 🐳 docker volume rm act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf [CI/test] [DEBUG] 🐳 docker volume rm act-CI-test-7587b47f572787ca4bc647c2581a917f05f439a38e66ca9abce9eb5337031daf-env [CI/test] 🏁 Job succeeded [CI/test] [DEBUG] Found revision: 5c6f585b1f9d8526c8e1672c5f8f00883b895d93 ``` ### Additional information Seems like the whole event payload is not respeced by act, despite it being read
kerem 2026-03-01 21:47:45 +03:00
Author
Owner

@sudomf commented on GitHub (Sep 30, 2023):

Experiencing the same issue for pull_request.json

<!-- gh-comment-id:1741764291 --> @sudomf commented on GitHub (Sep 30, 2023): Experiencing the same issue for pull_request.json
Author
Owner

@MattFaz commented on GitHub (Nov 9, 2023):

Same issue for me

<!-- gh-comment-id:1802979783 --> @MattFaz commented on GitHub (Nov 9, 2023): Same issue for me
Author
Owner

@github-actions[bot] commented on GitHub (Aug 14, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2287466034 --> @github-actions[bot] commented on GitHub (Aug 14, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Author
Owner

@ipatch commented on GitHub (Nov 8, 2024):

🤨 is this still an ongoing issue? i ask because i didn't see a mention a PR attempting to fix this issue, and only noticed being closed due to it being stale.

<!-- gh-comment-id:2465273580 --> @ipatch commented on GitHub (Nov 8, 2024): 🤨 is this still an ongoing issue? i ask because i didn't see a mention a PR attempting to fix this issue, and only noticed being closed due to it being stale.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#962
No description provided.