[GH-ISSUE #865] Issue: Unable to parse file paths that include spaces #519

Closed
opened 2026-03-01 21:44:07 +03:00 by kerem · 5 comments
Owner

Originally created by @participator on GitHub (Nov 9, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/865

Originally assigned to: @catthehacker on GitHub.

System information

  • Operating System: macOS
  • Architecture: x64 (64-bit)
  • Apple M1: no
  • Docker version: 20.10.8
  • act version: 0.2.24

Expected behaviour

When uses/setup-node@v2 is used, the version of node should print

Actual behaviour

I have spaces in my file path /Users/[my_username]/Code Projects. When I run npm -v I receive the error bash: /Users/[my_username]/Code: No such file or directory.

Workflow and/or repository

workflow
# This is a basic workflow to help you get started with Actions

name: Build

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the main branch
  push:
    branches: [ main ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  # This workflow contains a single job called "build"
  build:
    # The type of runner that the job will run on
    runs-on: ubuntu-latest

    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v2
      - name: Use Node.js
        uses: actions/setup-node@v2

      # Runs a single command using the runners shell
      - name: Run a one-line script
         run: npm -v

Steps to reproduce

act output

if filepath = /Users/username/Code Projects/repo

bash: /Users/username/Code : No such file or directory

Log
PASTE YOUR LOG HERE
Originally created by @participator on GitHub (Nov 9, 2021). Original GitHub issue: https://github.com/nektos/act/issues/865 Originally assigned to: @catthehacker on GitHub. <!-- - Make sure you are able to reproduce it on the [latest version](https://github.com/nektos/act/releases) - Search the existing issues. - Refer to [README](https://github.com/nektos/act/blob/master/README.md). --> ## System information - Operating System: macOS - Architecture: x64 (64-bit) - Apple M1: no - Docker version: 20.10.8 - `act` version: 0.2.24 ## Expected behaviour When `uses/setup-node@v2` is used, the version of node should print ## Actual behaviour I have spaces in my file path `/Users/[my_username]/Code Projects`. When I run `npm -v` I receive the error `bash: /Users/[my_username]/Code: No such file or directory`. ## Workflow and/or repository <details> <summary>workflow</summary> ```yaml # This is a basic workflow to help you get started with Actions name: Build # Controls when the workflow will run on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" build: # The type of runner that the job will run on runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - name: Use Node.js uses: actions/setup-node@v2 # Runs a single command using the runners shell - name: Run a one-line script run: npm -v ``` </details> ## Steps to reproduce <!-- - Make sure to include full command with parameters you used to run `act`, example: 1. Clone any repo onto a machine that has a space in its file path 2. Enter cloned repo directory 3. Run `act -j build` --> ## `act` output if filepath = /Users/username/Code Projects/repo `bash: /Users/username/Code : No such file or directory` <details> <summary>Log</summary> ```none PASTE YOUR LOG HERE ``` </details>
kerem 2026-03-01 21:44:07 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@participator commented on GitHub (Nov 9, 2021):

I would like to fix this issue.

<!-- gh-comment-id:964639635 --> @participator commented on GitHub (Nov 9, 2021): I would like to fix this issue.
Author
Owner

@iyanmv commented on GitHub (Nov 16, 2021):

I confirm this issue.

<!-- gh-comment-id:970013409 --> @iyanmv commented on GitHub (Nov 16, 2021): I confirm this issue.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 17, 2021):

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

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

@participator commented on GitHub (Dec 17, 2021):

@catthehacker does the stale label mean that this bug has been fixed?

<!-- gh-comment-id:996342288 --> @participator commented on GitHub (Dec 17, 2021): @catthehacker does the stale label mean that this bug has been fixed?
Author
Owner

@catthehacker commented on GitHub (Dec 17, 2021):

no

<!-- gh-comment-id:996468689 --> @catthehacker commented on GitHub (Dec 17, 2021): no
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#519
No description provided.