[GH-ISSUE #1031] Issue: runner.workspace context is empty #600

Closed
opened 2026-03-01 21:44:51 +03:00 by kerem · 1 comment
Owner

Originally created by @JulianGro on GitHub (Mar 9, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1031

System information

- Operating System: Linux
- Architecture: x86_64
- Docker version: 20.10.7
- Docker image used in `act`: `ghcr.io/catthehacker/ubuntu:full-18.04`
- `act` version: 0.2.25

Expected behaviour

${{runner.workspace}} should return the current runner workspace.

Actual behaviour

${{runner.workspace}} returns nothing

Steps to reproduce

Add ${{runner.workspace}} to a workflow file. (For example echo "${{runner.workspace}}/test")
Run the workflow
Observe

Additional info

Apparently runner.workspace is not documented. See https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context

Originally created by @JulianGro on GitHub (Mar 9, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1031 ## System information - Operating System: Linux - Architecture: x86_64 - Docker version: 20.10.7 - Docker image used in `act`: `ghcr.io/catthehacker/ubuntu:full-18.04` - `act` version: 0.2.25 ## Expected behaviour `${{runner.workspace}}` should return the current runner workspace. ## Actual behaviour `${{runner.workspace}}` returns nothing ## Steps to reproduce Add `${{runner.workspace}}` to a workflow file. (For example `echo "${{runner.workspace}}/test"`) Run the workflow Observe ## Additional info Apparently runner.workspace is not documented. See https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context
kerem 2026-03-01 21:44:51 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@KnisterPeter commented on GitHub (Mar 28, 2022):

@JulianGro As it is not documented it might be not 'officially' supported. As a workaround you should be able to use ${{ env.GITHUB_WORKSPACE }} to get the workflow folder.

I will close this, unless github officially documents this behavior.

<!-- gh-comment-id:1080855808 --> @KnisterPeter commented on GitHub (Mar 28, 2022): @JulianGro As it is not documented it might be not 'officially' supported. As a workaround you should be able to use `${{ env.GITHUB_WORKSPACE }}` to get the workflow folder. I will close this, unless github officially documents this behavior.
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#600
No description provided.