Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Docker env PATH lost #896

Open
jayvdb opened this issue Nov 21, 2021 · 11 comments
Open

Issue: Docker env PATH lost #896

jayvdb opened this issue Nov 21, 2021 · 11 comments
Assignees
Labels
kind/bug Something isn't working stale-exempt Exempt from stale

Comments

@jayvdb
Copy link

jayvdb commented Nov 21, 2021

System information

  • Operating System: macOS
  • Architecture: x64 (64-bit)
  • Apple M1: no
  • Docker version: 20.10.8
  • Docker image used in act: medium
  • act version: master and 0.2.24

Expected behaviour

I am running https://github.com/returntocorp/semgrep-action locally using act, and its Dockerfile env PATH addition of /root/.local/bin is being disregarded, so that it can not find commands that are available when running the docker image directly.

https://github.com/returntocorp/semgrep-action/issues/428 covers my initial analysis, showing that the PATH doesnt contain the necessary component, and oddly includes /usr/games:/usr/local/games:/snap/bin - I cant find where those come from.

Actual behaviour

The PATH is wrong.

Workflow and/or repository

https://github.com/jayvdb/dns-cache/blob/master/.github/workflows/semgrep.yml

Note this is the default semgrep GitHub action yml, and I've verified this problem occurs on several repos.

Steps to reproduce

act -j semgrep

act output

Log
% act -v -j semgrep
DEBU[0000] Loading environment from /Users/jayvdb/me/dns-cache/.env
DEBU[0000] Loading secrets from /Users/jayvdb/me/dns-cache/.secrets
DEBU[0000] Loading workflows from '/Users/jayvdb/me/dns-cache/.github/workflows'
DEBU[0000] Loading workflows recursively
DEBU[0000] Found workflow 'semgrep.yml' in '/Users/jayvdb/me/dns-cache/.github/workflows/semgrep.yml'
DEBU[0000] Reading workflow '/Users/jayvdb/me/dns-cache/.github/workflows/semgrep.yml'
DEBU[0000] Correcting if statements '/Users/jayvdb/me/dns-cache/.github/workflows/semgrep.yml'
DEBU[0000] Planning job: semgrep
DEBU[0000] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0000] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0000] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0000] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0000] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0000] using github ref: refs/heads/master
DEBU[0000] context env => map[ACT:true]
DEBU[0000] context needs => map[]
[Semgrep/Scan] 🚀  Start image=catthehacker/ubuntu:act-latest
DEBU[0000] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0000] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0000] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0000] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0000] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0000] using github ref: refs/heads/master
[Semgrep/Scan]   🐳  docker pull image=catthehacker/ubuntu:act-latest platform= username= forcePull=false
[Semgrep/Scan]   🐳  docker pull catthehacker/ubuntu:act-latest
DEBU[0000] Image exists? true
[Semgrep/Scan] Removed container: 95ef694c625811afce4a746a0f699112feebfbc2e9a267ac2d28c5bd2458e747
[Semgrep/Scan]   🐳  docker volume rm act-Semgrep-Scan
[Semgrep/Scan]   🐳  docker create image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Semgrep/Scan] Created container name=act-Semgrep-Scan id=5c76ca121ffc23c8daf32ab3f904b1a95ae74fd5b1d11dadf9f76a6b534a3940 from image catthehacker/ubuntu:act-latest (platform: )
[Semgrep/Scan] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[Semgrep/Scan]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Semgrep/Scan] Starting container: 5c76ca121ffc23c8daf32ab3f904b1a95ae74fd5b1d11dadf9f76a6b534a3940
[Semgrep/Scan] Started container: 5c76ca121ffc23c8daf32ab3f904b1a95ae74fd5b1d11dadf9f76a6b534a3940
[Semgrep/Scan]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir=
[Semgrep/Scan] Exec command '[mkdir -m 0777 -p /var/run/act]'
[Semgrep/Scan] Working directory '/Users/jayvdb/me/dns-cache'
[Semgrep/Scan]   🐳  docker cp src=/Users/jayvdb/me/dns-cache/. dst=/Users/jayvdb/me/dns-cache
[Semgrep/Scan]   🐳  docker exec cmd=[mkdir -p /Users/jayvdb/me/dns-cache] user= workdir=
[Semgrep/Scan] Exec command '[mkdir -p /Users/jayvdb/me/dns-cache]'
[Semgrep/Scan] Working directory '/Users/jayvdb/me/dns-cache'
DEBU[0001] Writing tarball /var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/act1096353253 from /Users/jayvdb/me/dns-cache/.
DEBU[0001] Stripping prefix:/Users/jayvdb/me/dns-cache/ src:/Users/jayvdb/me/dns-cache/.
[Semgrep/Scan] Extracting content from '/var/folders/j6/q46zbprs12n5ds9z7zytq5mm0000gn/T/act1096353253' to '/Users/jayvdb/me/dns-cache'
DEBU[0001] Writing entry to tarball workflow/event.json len:2
DEBU[0001] Writing entry to tarball workflow/envs.txt len:0
DEBU[0001] Writing entry to tarball workflow/paths.txt len:0
[Semgrep/Scan] Extracting content to '/var/run/act/'
DEBU[0001] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0001] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0001] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0001] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0001] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0001] using github ref: refs/heads/master
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0002] context needs => map[]
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
[Semgrep/Scan] 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_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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
[Semgrep/Scan] ⭐  Run actions/checkout@v2
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
[Semgrep/Scan] Skipping local actions/checkout because workdir was already copied
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0002] context needs => map[]
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
[Semgrep/Scan]   ✅  Success - actions/checkout@v2
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0002] context needs => map[]
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0002] context needs => map[]
DEBU[0002] Evaluating 'secrets['SEMGREP_APP_TOKEN']' instead of 'secrets.SEMGREP_APP_TOKEN'
DEBU[0002] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 INPUT_PUBLISHTOKEN:${{ secrets.SEMGREP_APP_TOKEN }} ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0002] Evaluating 'secrets['SEMGREP_APP_TOKEN']' instead of 'secrets.SEMGREP_APP_TOKEN'
[Semgrep/Scan] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 INPUT_PUBLISHTOKEN: ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
[Semgrep/Scan] ⭐  Run returntocorp/semgrep-action@v1
DEBU[0002] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0002] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0002] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0002] using github ref: refs/heads/master
INFO[0002]   ☁  git clone 'https://github.com/returntocorp/semgrep-action' # ref=v1
DEBU[0002]   cloning https://github.com/returntocorp/semgrep-action to /Users/jayvdb/.cache/act/returntocorp-semgrep-action@v1
DEBU[0003] Cloned https://github.com/returntocorp/semgrep-action to /Users/jayvdb/.cache/act/returntocorp-semgrep-action@v1
DEBU[0004] Checked out v1
DEBU[0004] Read action &{Semgrep Action Return To Corporation Easily detect and prevent bugs and anti-patterns in your codebase map[auditOn:{GitHub Actions events where the action should always report success,
even if findings were found.
`auditOn: push` will scan for findings but not fail on push events.
You can set multiple event names with a space-separated string.
 false } config:{Rules and patterns to search for with semgrep.
 false } generateSarif:{Set to 1 if you want a semgrep.sarif file to be written with all semgrep findings.
 false } publishToken:{Access token to post results to the semgrep app.
 false }] map[] {docker map[]  docker://returntocorp/semgrep-agent:v1  [] []} {gray-dark align-left}} from 'Unknown'
DEBU[0004] About to run action &{Semgrep Action Return To Corporation Easily detect and prevent bugs and anti-patterns in your codebase map[auditOn:{GitHub Actions events where the action should always report success,
even if findings were found.
`auditOn: push` will scan for findings but not fail on push events.
You can set multiple event names with a space-separated string.
 false } config:{Rules and patterns to search for with semgrep.
 false } generateSarif:{Set to 1 if you want a semgrep.sarif file to be written with all semgrep findings.
 false } publishToken:{Access token to post results to the semgrep app.
 false }] map[] {docker map[]  docker://returntocorp/semgrep-agent:v1  [] []} {gray-dark align-left}}
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Evaluating 'secrets['SEMGREP_APP_TOKEN']' instead of 'secrets.SEMGREP_APP_TOKEN'
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 INPUT_AUDITON: INPUT_CONFIG: INPUT_GENERATESARIF: INPUT_PUBLISHTOKEN: ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] type=3 actionDir=/Users/jayvdb/.cache/act/returntocorp-semgrep-action@v1 actionPath= workdir=/Users/jayvdb/me/dns-cache actionCacheDir=/Users/jayvdb/.cache/act actionName=returntocorp-semgrep-action@v1 containerActionDir=/var/run/act/actions/returntocorp-semgrep-action@v1
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Loading slug from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] Loading revision from git directory '/Users/jayvdb/me/dns-cache/.git'
DEBU[0004] Found revision: fc4a79584c11d939ecba5a57e501f237958492d2
DEBU[0004] HEAD points to 'fc4a79584c11d939ecba5a57e501f237958492d2'
DEBU[0004] using github ref: refs/heads/master
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
DEBU[0004] context needs => map[]
DEBU[0004] Evaluating 'secrets['SEMGREP_APP_TOKEN']' instead of 'secrets.SEMGREP_APP_TOKEN'
DEBU[0004] context env => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:1 GITHUB_ACTIONS:true 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:Scan GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:jayvdb/dns-cache GITHUB_REPOSITORY_OWNER:jayvdb GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_TOKEN: GITHUB_WORKFLOW:Semgrep GITHUB_WORKSPACE:/Users/jayvdb/me/dns-cache IMAGE_OS:ubuntu20 INPUT_AUDITON: INPUT_CONFIG: INPUT_GENERATESARIF: INPUT_PUBLISHTOKEN: ImageOS:ubuntu20 LSB_OS_VERSION:2004 LSB_RELEASE:20.04 PATH:/opt/hostedtoolcache/node/14.18.1/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]
[Semgrep/Scan]   🐳  docker pull image=returntocorp/semgrep-agent:v1 platform= username= forcePull=false
[Semgrep/Scan]   🐳  docker pull returntocorp/semgrep-agent:v1
DEBU[0004] Image exists? true
[Semgrep/Scan]   🐳  docker create image=returntocorp/semgrep-agent:v1 platform= entrypoint=[] cmd=[]
[Semgrep/Scan] Created container name=act-Semgrep-Sc-1 id=9ef3b2f5c26a455485c328665192aaf9ba97e79b56a241b5536c6b3fc3c2a642 from image returntocorp/semgrep-agent:v1 (platform: )
[Semgrep/Scan] ENV ==> [GITHUB_HEAD_REF= GITHUB_PATH=/var/run/act/workflow/paths.txt LSB_RELEASE=20.04 GITHUB_ACTION_REF= IMAGE_OS=ubuntu20 GITHUB_ACTION_REPOSITORY= ImageOS=ubuntu20 INPUT_AUDITON= GITHUB_REPOSITORY_OWNER=jayvdb RUNNER_USER=root DEBIAN_FRONTEND=noninteractive GITHUB_ACTIONS=true INPUT_CONFIG= GITHUB_REF=refs/heads/master AGENT_TOOLSDIRECTORY=/opt/hostedtoolcache DEPLOYMENT_BASEPATH=/opt/runner GITHUB_WORKFLOW=Semgrep GITHUB_WORKSPACE=/Users/jayvdb/me/dns-cache GITHUB_GRAPHQL_URL=https://api.github.com/graphql GITHUB_ACTOR=nektos/act GITHUB_BASE_REF= GITHUB_SERVER_URL=https://github.com GITHUB_RUN_NUMBER=1 RUN_TOOL_CACHE=/opt/hostedtoolcache GITHUB_EVENT_PATH=/var/run/act/workflow/event.json LSB_OS_VERSION=2004 USER=root GITHUB_SHA=fc4a79584c11d939ecba5a57e501f237958492d2 GITHUB_ACTION=1 INPUT_PUBLISHTOKEN= GITHUB_JOB=Scan GITHUB_RUN_ID=1 ACT=true PATH=/opt/hostedtoolcache/node/14.18.1/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 CI=true GITHUB_TOKEN= GITHUB_API_URL=https://api.github.com GITHUB_RETENTION_DAYS=0 GITHUB_ENV=/var/run/act/workflow/envs.txt RUNNER_TRACKING_ID= RUNNER_PERFLOG=/dev/null GITHUB_EVENT_NAME=push GITHUB_REPOSITORY=jayvdb/dns-cache INPUT_GENERATESARIF= RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[Semgrep/Scan]   🐳  docker run image=returntocorp/semgrep-agent:v1 platform= entrypoint=[] cmd=[]
[Semgrep/Scan] Starting container: 9ef3b2f5c26a455485c328665192aaf9ba97e79b56a241b5536c6b3fc3c2a642
[Semgrep/Scan] Started container: 9ef3b2f5c26a455485c328665192aaf9ba97e79b56a241b5536c6b3fc3c2a642
| Traceback (most recent call last):
|   File "/usr/local/bin/semgrep-agent", line 2, in <module>
|     from semgrep_agent.__main__ import error_guard
|   File "/app/src/semgrep_agent/__main__.py", line 6, in <module>
|     from semgrep_agent.main import main
|   File "/app/src/semgrep_agent/main.py", line 18, in <module>
|     from semgrep_agent import semgrep
|   File "/app/src/semgrep_agent/semgrep.py", line 42, in <module>
|     semgrep_exec = sh.semgrep.bake(_ok_code={0, 1}, _tty_out=False, _env=ua_environ)
|   File "/usr/local/lib/python3.9/site-packages/sh.py", line 3672, in __getattr__
|     return self.__env[name]
|   File "/usr/local/lib/python3.9/site-packages/sh.py", line 3457, in __getitem__
|     raise CommandNotFound(k)
| sh.CommandNotFound: semgrep
[Semgrep/Scan] Return status: 1
[Semgrep/Scan] Removed container: 9ef3b2f5c26a455485c328665192aaf9ba97e79b56a241b5536c6b3fc3c2a642
DEBU[0006] exit with `FAILURE`: 1
[Semgrep/Scan]   ❌  Failure - returntocorp/semgrep-action@v1
DEBU[0006] exit with `FAILURE`: 1
Error: exit with `FAILURE`: 1
@jayvdb jayvdb added the kind/bug Something isn't working label Nov 21, 2021
@catthehacker catthehacker self-assigned this Nov 21, 2021
catthehacker pushed a commit to catthehacker/act-fork that referenced this issue Nov 22, 2021
@jayvdb
Copy link
Author

jayvdb commented Nov 30, 2021

This also effects https://github.com/SonarSource/sonarcloud-github-action

I tried https://github.com/catthehacker/act-fork/tree/vNext for semgrep and sonarcloud; both not working.

@nascit
Copy link

nascit commented Jan 26, 2022

I have the exact same issue. Has anyone found a workaround?

@jayvdb
Copy link
Author

jayvdb commented Jan 26, 2022

My workaround is to add a layer which puts symlinks in /usr/bin

@github-actions github-actions bot added the stale label Feb 26, 2022
@nektos nektos deleted a comment from github-actions bot Feb 26, 2022
@nektos nektos deleted a comment from jayvdb Feb 26, 2022
@nektos nektos deleted a comment from github-actions bot Feb 26, 2022
@nektos nektos deleted a comment from jayvdb Feb 26, 2022
@catthehacker catthehacker added stale-exempt Exempt from stale and removed stale labels Feb 26, 2022
@CarloDePieri
Copy link

CarloDePieri commented May 22, 2022

This affects even SonarSource/sonarqube-scan-action.

I wanted to report that the workaround proposed by @jayvdb works in this case, too (sonarqube-scan-action patched fork).

@mottet
Copy link

mottet commented Jan 10, 2023

A simple workaround is to manually set the PATH in the env parameter of the step.

For sonarqube-scan-action:

(...)
jobs:
  sonar:
    steps:
      (...)
      - uses: sonarsource/sonarqube-scan-action@master
        with:
          projectBaseDir: "build"
        env:
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
          SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
          PATH: /opt/sonar-scanner/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    (...)

You can find the expected PATH in env by inspecting the image with the command docker inspect --format='{{json .Config.Env}}' IMAGE

@vHanda
Copy link

vHanda commented Feb 8, 2023

For others:

  • I was trying to diagnose why a job was failing in act, and couldn't run node inside the container as the PATH was incorrect.
  • I therefore ran act -v to enable verbose mode
  • Search for the last instance of " PATH:" and copy its value
  • Docker exec the container and set the PATH via export PATH="VALUE_COPIED"

Ideally, one should be setting the entire environment as it was left by the job, but that's a bit more work.

@ChristopherHX
Copy link
Contributor

@vHanda I assume this issue has been fixed with #1503

Could you try to use the master branch of act and test if you are still facing issues?

Test binaries of the master branch can be found here: https://github.com/nektos/act/actions/runs/4126476541

@scottjasso
Copy link

@ChristopherHX this is still an issue for me on 0.2.44.

Just running an action that prints $PATH gives:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Whereas in the runner image, $PATH is something like:
/usr/local/custom/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

This prevents me from running any commands that are preinstalled in my image.

@ChristopherHX
Copy link
Contributor

@scottjasso
I don't know how you came to the conclusion can you help me to understand your specfic problem?

Running this docker action (Dockerfile action)

FROM ubuntu:latest
ENV PATH "/mycustom:$PATH"
ENTRYPOINT "env"

OUTPUTS

| PATH=/mycustom:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

Remember only environment variables defined by ENV KEY VALUE in a Dockerfile are loaded. I removed the code to load /etc/environment.

@scottjasso
Copy link

scottjasso commented Apr 18, 2023

Remember only environment variables defined by ENV KEY VALUE in a Dockerfile are loaded. I removed the code to load /etc/environment.

Ahh, I see. Our PATH is set in /etc/environment, not via docker ENV.

@glimchb
Copy link

glimchb commented Jul 10, 2024

@ChristopherHX can i add to a path from act cmdline via —env ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working stale-exempt Exempt from stale
Projects
None yet
Development

No branches or pull requests

9 participants