[GH-ISSUE #1151] Issue: yq missing from path in act, not missing on github #647

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

Originally created by @therealmitchconnors on GitHub (May 5, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1151

The following config assumes yq is on the path in bash, and that assumption works when running on GitHub, but fails with act. Is there a known difference in the ubuntu-latest versions supported by GitHub and act?

jobs:
  my-job
    runs-on: ubuntu-latest
    steps:
      - name: do something with yq
        run: |
         yq eval '. ' ./some/file/in/repo

The output of the above is:

/var/run/act/workflow/get-istio-version: line 2: yq: command not found

System information

- Operating System: macOS
- Architecture: x64
- Apple M1: no
- Docker version: 20.10.7
- Docker image used in `act`: ghcr.io/catthehacker/ubuntu:act-latest
- `act` version: 0.2.26

Expected behaviour

yq is on the path

Actual behaviour

yq is not on the path

Workflow and/or repository

see above

Steps to reproduce

use above worfklow

act output

DEBU[0000] Loading environment from /Users/mitchconnors/gitops-istio/.env 
DEBU[0000] Loading secrets from /Users/mitchconnors/gitops-istio/.secrets 
DEBU[0000] Loading workflows from '/Users/mitchconnors/gitops-istio/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'analyze-istio.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/analyze-istio.yaml' 
DEBU[0000] Found workflow 'e2e.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/e2e.yaml' 
DEBU[0000] Found workflow 'inject-sidecar.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/inject-sidecar.yaml' 
DEBU[0000] Found workflow 'update-istio.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/update-istio.yaml' 
DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/analyze-istio.yaml' 
DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/e2e.yaml' 
DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/inject-sidecar.yaml' 
DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/update-istio.yaml' 
DEBU[0000] Planning job: inject-istio                   
DEBU[0000] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0000] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0000] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0000] using github ref: refs/heads/main            
DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0000] evaluating expression 'success()'            
DEBU[0000] expression 'success()' evaluated to 'true'   
[inject-sidecar/inject-istio] 🚀  Start image=ghcr.io/catthehacker/ubuntu:act-latest
DEBU[0000] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0000] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0000] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0000] using github ref: refs/heads/main            
DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
[inject-sidecar/inject-istio]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:act-latest platform= username= forcePull=false
[inject-sidecar/inject-istio]   🐳  docker pull ghcr.io/catthehacker/ubuntu:act-latest
DEBU[0000] Image exists? true                           
[inject-sidecar/inject-istio] Removed container: 1391d7f8eb0f498d493775e0521983ebb4e3044d251e94c77ced94335858a0a8
[inject-sidecar/inject-istio]   🐳  docker volume rm act-inject-sidecar-inject-istio
[inject-sidecar/inject-istio]   🐳  docker create image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[inject-sidecar/inject-istio] Created container name=act-inject-sidecar-inject-istio id=01c84c893c3b85df1a46a7fabdac6efbb7f521ad1de31b51bd20fe855dd38047 from image ghcr.io/catthehacker/ubuntu:act-latest (platform: )
[inject-sidecar/inject-istio] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[inject-sidecar/inject-istio]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[inject-sidecar/inject-istio] Starting container: 01c84c893c3b85df1a46a7fabdac6efbb7f521ad1de31b51bd20fe855dd38047
[inject-sidecar/inject-istio] Started container: 01c84c893c3b85df1a46a7fabdac6efbb7f521ad1de31b51bd20fe855dd38047
[inject-sidecar/inject-istio]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir=
[inject-sidecar/inject-istio] Exec command '[mkdir -m 0777 -p /var/run/act]'
[inject-sidecar/inject-istio] Working directory '/Users/mitchconnors/gitops-istio'
[inject-sidecar/inject-istio]   🐳  docker cp src=/Users/mitchconnors/gitops-istio/. dst=/Users/mitchconnors/gitops-istio
[inject-sidecar/inject-istio]   🐳  docker exec cmd=[mkdir -p /Users/mitchconnors/gitops-istio] user= workdir=
[inject-sidecar/inject-istio] Exec command '[mkdir -p /Users/mitchconnors/gitops-istio]'
[inject-sidecar/inject-istio] Working directory '/Users/mitchconnors/gitops-istio'
DEBU[0000] Writing tarball /var/folders/r5/__18c1857rlg5h9hld3862_w00l7hh/T/act2847263232 from /Users/mitchconnors/gitops-istio/. 
DEBU[0000] Stripping prefix:/Users/mitchconnors/gitops-istio/ src:/Users/mitchconnors/gitops-istio/. 
[inject-sidecar/inject-istio] Extracting content from '/var/folders/r5/__18c1857rlg5h9hld3862_w00l7hh/T/act2847263232' to '/Users/mitchconnors/gitops-istio'
DEBU[0002] Writing entry to tarball workflow/event.json len:2 
DEBU[0002] Writing entry to tarball workflow/envs.txt len:0 
DEBU[0002] Writing entry to tarball workflow/paths.txt len:0 
[inject-sidecar/inject-istio] Extracting content to '/var/run/act/'
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] evaluating expression ''                     
DEBU[0002] expression '' evaluated to 'true'            
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
[inject-sidecar/inject-istio] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 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_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:inject-istio GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/main GITHUB_REPOSITORY:therealmitchconnors/gitops-istio GITHUB_REPOSITORY_OWNER:therealmitchconnors GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:866c08d5b12e1cd13b8e61e087031eef0fc30534 GITHUB_TOKEN: GITHUB_WORKFLOW:inject-sidecar GITHUB_WORKSPACE:/Users/mitchconnors/gitops-istio IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[inject-sidecar/inject-istio] ⭐  Run Checkout
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
[inject-sidecar/inject-istio] Skipping local actions/checkout because workdir was already copied
[inject-sidecar/inject-istio]   ✅  Success - Checkout
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] evaluating expression ''                     
DEBU[0002] expression '' evaluated to 'true'            
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
[inject-sidecar/inject-istio] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:get-istio-version 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_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:inject-istio GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/main GITHUB_REPOSITORY:therealmitchconnors/gitops-istio GITHUB_REPOSITORY_OWNER:therealmitchconnors GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:866c08d5b12e1cd13b8e61e087031eef0fc30534 GITHUB_TOKEN: GITHUB_WORKFLOW:inject-sidecar GITHUB_WORKSPACE:/Users/mitchconnors/gitops-istio IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[inject-sidecar/inject-istio] ⭐  Run get istio version
DEBU[0002] Wrote command 

ISTIO_VERSION=$(yq eval '. | select(.kind == "Deployment") | .spec.template.spec.containers[0].image | split(":") | .[1]' ./istio/operator/manifests.yaml)
echo "ISTIO_VERSION=$ISTIO_VERSION" >> $GITHUB_ENV


 to 'workflow/get-istio-version' 
DEBU[0002] Writing entry to tarball workflow/get-istio-version len:208 
[inject-sidecar/inject-istio] Extracting content to '/var/run/act'
[inject-sidecar/inject-istio]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/get-istio-version] user= workdir=
[inject-sidecar/inject-istio] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/get-istio-version]'
[inject-sidecar/inject-istio] Working directory '/Users/mitchconnors/gitops-istio'
| /var/run/act/workflow/get-istio-version: line 2: yq: command not found
[inject-sidecar/inject-istio]   ❌  Failure - get istio version
[inject-sidecar/inject-istio] exit with `FAILURE`: 127
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] evaluating expression ''                     
DEBU[0002] expression '' evaluated to 'false'           
DEBU[0002] Skipping step 'get istioctl uri' due to ''   
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] evaluating expression ''                     
DEBU[0002] expression '' evaluated to 'false'           
DEBU[0002] Skipping step 'Get Istioctl' due to ''       
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] evaluating expression ''                     
DEBU[0002] expression '' evaluated to 'false'           
DEBU[0002] Skipping step 'Inject Sidecar' due to ''     
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] evaluating expression 'steps.inject.outputs.version' 
DEBU[0002] expression 'steps.inject.outputs.version' evaluated to 'false' 
DEBU[0002] Skipping step 'Create Pull Request' due to 'steps.inject.outputs.version' 
DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' 
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' 
DEBU[0002] using github ref: refs/heads/main            
DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 
Error: Job 'inject-istio' failed

Originally created by @therealmitchconnors on GitHub (May 5, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1151 The following config assumes `yq` is on the path in bash, and that assumption works when running on GitHub, but fails with act. Is there a known difference in the ubuntu-latest versions supported by GitHub and act? ``` jobs: my-job runs-on: ubuntu-latest steps: - name: do something with yq run: | yq eval '. ' ./some/file/in/repo ``` The output of the above is: ``` /var/run/act/workflow/get-istio-version: line 2: yq: command not found ``` ## System information - Operating System: macOS - Architecture: x64 - Apple M1: no - Docker version: 20.10.7 - Docker image used in `act`: ghcr.io/catthehacker/ubuntu:act-latest - `act` version: 0.2.26 ## Expected behaviour `yq` is on the path ## Actual behaviour `yq` is not on the path ## Workflow and/or repository see above ## Steps to reproduce use above worfklow ## `act` output ``` DEBU[0000] Loading environment from /Users/mitchconnors/gitops-istio/.env DEBU[0000] Loading secrets from /Users/mitchconnors/gitops-istio/.secrets DEBU[0000] Loading workflows from '/Users/mitchconnors/gitops-istio/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'analyze-istio.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/analyze-istio.yaml' DEBU[0000] Found workflow 'e2e.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/e2e.yaml' DEBU[0000] Found workflow 'inject-sidecar.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/inject-sidecar.yaml' DEBU[0000] Found workflow 'update-istio.yaml' in '/Users/mitchconnors/gitops-istio/.github/workflows/update-istio.yaml' DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/analyze-istio.yaml' DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/e2e.yaml' DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/inject-sidecar.yaml' DEBU[0000] Reading workflow '/Users/mitchconnors/gitops-istio/.github/workflows/update-istio.yaml' DEBU[0000] Planning job: inject-istio DEBU[0000] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0000] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0000] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0000] using github ref: refs/heads/main DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0000] evaluating expression 'success()' DEBU[0000] expression 'success()' evaluated to 'true' [inject-sidecar/inject-istio] 🚀 Start image=ghcr.io/catthehacker/ubuntu:act-latest DEBU[0000] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0000] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0000] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0000] using github ref: refs/heads/main DEBU[0000] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 [inject-sidecar/inject-istio] 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:act-latest platform= username= forcePull=false [inject-sidecar/inject-istio] 🐳 docker pull ghcr.io/catthehacker/ubuntu:act-latest DEBU[0000] Image exists? true [inject-sidecar/inject-istio] Removed container: 1391d7f8eb0f498d493775e0521983ebb4e3044d251e94c77ced94335858a0a8 [inject-sidecar/inject-istio] 🐳 docker volume rm act-inject-sidecar-inject-istio [inject-sidecar/inject-istio] 🐳 docker create image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [inject-sidecar/inject-istio] Created container name=act-inject-sidecar-inject-istio id=01c84c893c3b85df1a46a7fabdac6efbb7f521ad1de31b51bd20fe855dd38047 from image ghcr.io/catthehacker/ubuntu:act-latest (platform: ) [inject-sidecar/inject-istio] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [inject-sidecar/inject-istio] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [inject-sidecar/inject-istio] Starting container: 01c84c893c3b85df1a46a7fabdac6efbb7f521ad1de31b51bd20fe855dd38047 [inject-sidecar/inject-istio] Started container: 01c84c893c3b85df1a46a7fabdac6efbb7f521ad1de31b51bd20fe855dd38047 [inject-sidecar/inject-istio] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir= [inject-sidecar/inject-istio] Exec command '[mkdir -m 0777 -p /var/run/act]' [inject-sidecar/inject-istio] Working directory '/Users/mitchconnors/gitops-istio' [inject-sidecar/inject-istio] 🐳 docker cp src=/Users/mitchconnors/gitops-istio/. dst=/Users/mitchconnors/gitops-istio [inject-sidecar/inject-istio] 🐳 docker exec cmd=[mkdir -p /Users/mitchconnors/gitops-istio] user= workdir= [inject-sidecar/inject-istio] Exec command '[mkdir -p /Users/mitchconnors/gitops-istio]' [inject-sidecar/inject-istio] Working directory '/Users/mitchconnors/gitops-istio' DEBU[0000] Writing tarball /var/folders/r5/__18c1857rlg5h9hld3862_w00l7hh/T/act2847263232 from /Users/mitchconnors/gitops-istio/. DEBU[0000] Stripping prefix:/Users/mitchconnors/gitops-istio/ src:/Users/mitchconnors/gitops-istio/. [inject-sidecar/inject-istio] Extracting content from '/var/folders/r5/__18c1857rlg5h9hld3862_w00l7hh/T/act2847263232' to '/Users/mitchconnors/gitops-istio' DEBU[0002] Writing entry to tarball workflow/event.json len:2 DEBU[0002] Writing entry to tarball workflow/envs.txt len:0 DEBU[0002] Writing entry to tarball workflow/paths.txt len:0 [inject-sidecar/inject-istio] Extracting content to '/var/run/act/' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'true' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 [inject-sidecar/inject-istio] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 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_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:inject-istio GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/main GITHUB_REPOSITORY:therealmitchconnors/gitops-istio GITHUB_REPOSITORY_OWNER:therealmitchconnors GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:866c08d5b12e1cd13b8e61e087031eef0fc30534 GITHUB_TOKEN: GITHUB_WORKFLOW:inject-sidecar GITHUB_WORKSPACE:/Users/mitchconnors/gitops-istio IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [inject-sidecar/inject-istio] ⭐ Run Checkout DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 [inject-sidecar/inject-istio] Skipping local actions/checkout because workdir was already copied [inject-sidecar/inject-istio] ✅ Success - Checkout DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'true' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 [inject-sidecar/inject-istio] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:get-istio-version 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_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:inject-istio GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/main GITHUB_REPOSITORY:therealmitchconnors/gitops-istio GITHUB_REPOSITORY_OWNER:therealmitchconnors GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:866c08d5b12e1cd13b8e61e087031eef0fc30534 GITHUB_TOKEN: GITHUB_WORKFLOW:inject-sidecar GITHUB_WORKSPACE:/Users/mitchconnors/gitops-istio IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/16.15.0/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [inject-sidecar/inject-istio] ⭐ Run get istio version DEBU[0002] Wrote command ISTIO_VERSION=$(yq eval '. | select(.kind == "Deployment") | .spec.template.spec.containers[0].image | split(":") | .[1]' ./istio/operator/manifests.yaml) echo "ISTIO_VERSION=$ISTIO_VERSION" >> $GITHUB_ENV to 'workflow/get-istio-version' DEBU[0002] Writing entry to tarball workflow/get-istio-version len:208 [inject-sidecar/inject-istio] Extracting content to '/var/run/act' [inject-sidecar/inject-istio] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/get-istio-version] user= workdir= [inject-sidecar/inject-istio] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/get-istio-version]' [inject-sidecar/inject-istio] Working directory '/Users/mitchconnors/gitops-istio' | /var/run/act/workflow/get-istio-version: line 2: yq: command not found [inject-sidecar/inject-istio] ❌ Failure - get istio version [inject-sidecar/inject-istio] exit with `FAILURE`: 127 DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'false' DEBU[0002] Skipping step 'get istioctl uri' due to '' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'false' DEBU[0002] Skipping step 'Get Istioctl' due to '' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' [0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] evaluating expression '' DEBU[0002] expression '' evaluated to 'false' DEBU[0002] Skipping step 'Inject Sidecar' due to '' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] evaluating expression 'steps.inject.outputs.version' DEBU[0002] expression 'steps.inject.outputs.version' evaluated to 'false' DEBU[0002] Skipping step 'Create Pull Request' due to 'steps.inject.outputs.version' DEBU[0002] Loading slug from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Loading revision from git directory '/Users/mitchconnors/gitops-istio/.git' DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 DEBU[0002] HEAD points to '866c08d5b12e1cd13b8e61e087031eef0fc30534' DEBU[0002] using github ref: refs/heads/main DEBU[0002] Found revision: 866c08d5b12e1cd13b8e61e087031eef0fc30534 Error: Job 'inject-istio' failed ```
kerem 2026-03-01 21:45:12 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@catthehacker commented on GitHub (May 6, 2022):

yq is not included in the image: https://github.com/nektos/act#default-runners-are-intentionally-incomplete

<!-- gh-comment-id:1119390716 --> @catthehacker commented on GitHub (May 6, 2022): `yq` is not included in the image: https://github.com/nektos/act#default-runners-are-intentionally-incomplete
Author
Owner

@david-dest01 commented on GitHub (Feb 16, 2024):

yq is not included in the image: https://github.com/nektos/act#default-runners-are-intentionally-incomplete

can we make it available?

<!-- gh-comment-id:1949068749 --> @david-dest01 commented on GitHub (Feb 16, 2024): > `yq` is not included in the image: https://github.com/nektos/act#default-runners-are-intentionally-incomplete can we make it available?
Author
Owner

@ChristopherHX commented on GitHub (Feb 16, 2024):

The "large" image should have it
See https://nektosact.com/usage/runners.html#runners

act -v -P ubuntu-latest=catthehacker/ubuntu:full-latest, (act won't log anything durng pull without -v, that can take spme time for 17GB to be downloaded and unpacked to ca. 57GB)

Making medium a second large image doesn't seem to make sense for me.

<!-- gh-comment-id:1949411455 --> @ChristopherHX commented on GitHub (Feb 16, 2024): The "large" image should have it See <https://nektosact.com/usage/runners.html#runners> `act -v -P ubuntu-latest=catthehacker/ubuntu:full-latest`, (act won't log anything durng pull without `-v`, that can take spme time for 17GB to be downloaded and unpacked to ca. 57GB) Making medium a second large image doesn't seem to make sense for me.
Author
Owner

@david-dest01 commented on GitHub (Feb 16, 2024):

act -v -P ubuntu-latest=catthehacker/ubuntu:full-latest

ugly but effective - appreciate the response @ChristopherHX

<!-- gh-comment-id:1949419473 --> @david-dest01 commented on GitHub (Feb 16, 2024): > act -v -P ubuntu-latest=catthehacker/ubuntu:full-latest ugly but effective - appreciate the response @ChristopherHX
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#647
No description provided.