Repository: cli/cli

Issue:
Suggested run list command for workflows with space in name doesn't work
### Describe the bug

When a workflow with a space in the name is run with `gh workflow run` the output suggestion of how to see the runs for the workflow doesn't wrap the name in quotes.

### Affected version

gh version 2.74.1 (2025-06-10)
https://github.com/cli/cli/releases/tag/v2.74.1

### Steps to reproduce the behavior

1. Create and register a workflow with a space in the name. eg. 'My Workflow'
2. Run `gh workflow run "My Workflow"
3. See error

### Expected vs actual behavior

The output of the command to run should either escape the spaces or wrap the name in quotes. Both work.
eg.

`gh run list --workflow="My Workflow"`
or
`gh run list --workflow=My\ Workflow`


### Logs

N/A


Hints from issue comments:
@williammartin: Please provide the command output with `GH_DEBUG=api` set. I believe this should work:

```
➜  test-repo git:(main) ✗ cat .github/workflows/unquoted.yml
name: Name With Spaces

on:
  workflow_dispatch

jobs:
    hello:
        runs-on: ubuntu-latest
        steps:
        - name: Hello Step
          run: echo "Hello World"


➜  test-repo git:(main) ✗ git add . && git commit -m "Name With Spaces" && git push
[main 3a8a616] Name With Spaces
 1 file changed, 11 insertions(+)
 create mode 100644 .github/workflows/unquoted.yml
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 10 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 626 bytes | 626.00 KiB/s, done.
Total 5 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/williammartin/test-repo.git
   117a85c..3a8a616  main -> main


➜  test-repo git:(main) GH_DEBUG=api gh workflow run "Name With Spaces"
[git remote -v]
[git config --get-regexp ^remote\..*\.gh-resolved$]
* Request at 2025-06-16 17:30:22.02953 +0200 CEST m=+0.087594043
* Request to https://api.github.com/graphql
> POST /graphql HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 524
> Content-Type: application/json; charset=utf-8
> Graphql-Features: merge_queue
> Time-Zone: Europe/Amsterdam
> User-Agent: GitHub CLI 2.74.1

GraphQL query:
fragment repo on Repository {
    id
    name
    owner { login }
    hasIssuesEnabled
    description
    hasWikiEnabled
    viewerPermission
    defaultBranchRef {
      name
    }
  }

  query RepositoryInfo($owner: String!, $name: String!) {
    repository(owner: $owner, name: $name) {
      ...repo
      parent {
        ...repo
      }
      mergeCommitAllowed
      rebaseMergeAllowed
      squashMergeAllowed
    }
  }
GraphQL variables: {"name":"test-repo","owner":"williammartin"}

< HTTP/2.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 16 Jun 2025 15:30:22 GMT
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: repo
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Media-Type: github.v4; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: EDD8:22819F:66FA20:69210C:6850388E
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: gist, read:org, repo, workflow
< X-Ratelimit-Limit: 5000
< X-Ratelimit-Remaining: 5000
< X-Ratelimit-Reset: 1750090481
< X-Ratelimit-Resource: graphql
< X-Ratelimit-Used: 31
< X-Xss-Protection: 0

{
  "data": {
    "repository": {
      "id": "R_kgDONgO2aQ",
      "name": "test-repo",
      "owner": {
        "login": "williammartin"
      },
      "hasIssuesEnabled": false,
      "description": null,
      "hasWikiEnabled": false,
      "viewerPermission": "ADMIN",
      "defaultBranchRef": {
        "name": "main"
      },
      "parent": {
        "id": "R_kgDONc_ZUg",
        "name": "test-repo",
        "owner": {
          "login": "williammartin-test-org"
        },
        "hasIssuesEnabled": true,
        "description": null,
        "hasWikiEnabled": false,
        "viewerPermission": "ADMIN",
        "defaultBranchRef": {
          "name": "main"
        }
      },
      "mergeCommitAllowed": true,
      "rebaseMergeAllowed": true,
      "squashMergeAllowed": true
    }
  }
}

* Request took 471.304291ms
* Request at 2025-06-16 17:30:22.535236 +0200 CEST m=+0.593296209
* Request to https://api.github.com/repos/williammartin/test-repo/actions/workflows?per_page=100&page=1
> GET /repos/williammartin/test-repo/actions/workflows?per_page=100&page=1 HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Type: application/json; charset=utf-8
> Time-Zone: Europe/Amsterdam
> User-Agent: GitHub CLI 2.74.1

< HTTP/2.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Cache-Control: private, max-age=60, s-maxage=60
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 16 Jun 2025 15:30:22 GMT
< Etag: W/"c2850ec5d19ff73968ac5c2837b2f102b07b658c55d9fe3e9d9db61a7f56f896"
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes:
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.v3; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: EDD8:22819F:66FC88:692371:6850388E
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: gist, read:org, repo, workflow
< X-Ratelimit-Limit: 15000
< X-Ratelimit-Remaining: 14968
< X-Ratelimit-Reset: 1750090634
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 32
< X-Xss-Protection: 0

{
  "total_count": 3,
  "workflows": [
    {
      "id": 168852926,
      "node_id": "W_kwDONgO2ac4KEH2-",
      "name": "Manual trigger",
      "path": ".github/workflows/name-with-spaces.yml", // This is from a previous test, though the name matches, it's a different workflow.
      "state": "active",
      "created_at": "2025-06-16T17:16:19.000+02:00",
      "updated_at": "2025-06-16T17:28:08.000+02:00",
      "url": "https://api.github.com/repos/williammartin/test-repo/actions/workflows/168852926",
      "html_url": "https://github.com/williammartin/test-repo/blob/main/.github/workflows/name-with-spaces.yml",
      "badge_url": "https://github.com/williammartin/test-repo/workflows/Manual%20trigger/badge.svg"
    },
    {
      "id": 153336580,
      "node_id": "W_kwDONgO2ac4JI7sE",
      "name": "ci",
      "path": ".github/workflows/projects.yml",
      "state": "active",
      "created_at": "2025-04-01T16:32:14.000+02:00",
      "updated_at": "2025-04-01T16:32:14.000+02:00",
      "url": "https://api.github.com/repos/williammartin/test-repo/actions/workflows/153336580",
      "html_url": "https://github.com/williammartin/test-repo/blob/main/.github/workflows/projects.yml",
      "badge_url": "https://github.com/williammartin/test-repo/workflows/ci/badge.svg"
    },
    {
      "id": 168856006,
      "node_id": "W_kwDONgO2ac4KEInG",
      "name": "Name With Spaces",
      "path": ".github/workflows/unquoted.yml",
      "state": "active",
      "created_at": "2025-06-16T17:30:10.000+02:00",
      "updated_at": "2025-06-16T17:30:10.000+02:00",
      "url": "https://api.github.com/repos/williammartin/test-repo/actions/workflows/168856006",
      "html_url": "https://github.com/williammartin/test-repo/blob/main/.github/workflows/unquoted.yml",
      "badge_url": "https://github.com/williammartin/test-repo/workflows/Name%20With%20Spaces/badge.svg"
    }
  ]
}

* Request took 198.131292ms
* Request at 2025-06-16 17:30:22.768354 +0200 CEST m=+0.826411918
* Request to https://api.github.com/repos/williammartin/test-repo/actions/workflows/168856006/dispatches
> POST /repos/williammartin/test-repo/actions/workflows/168856006/dispatches HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 26
> Content-Type: application/json; charset=utf-8
> Time-Zone: Europe/Amsterdam
> User-Agent: GitHub CLI 2.74.1

{
  "inputs": {},
  "ref": "main"
}

< HTTP/2.0 204 No Content
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Content-Security-Policy: default-src 'none'
< Date: Mon, 16 Jun 2025 15:30:23 GMT
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes:
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.v3; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: EDD8:22819F:66FDC9:692499:6850388E
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: gist, read:org, repo, workflow
< X-Ratelimit-Limit: 15000
< X-Ratelimit-Remaining: 14967
< X-Ratelimit-Reset: 1750090634
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 33
< X-Xss-Protection: 0

* Request took 389.086333ms
✓ Created workflow_dispatch event for unquoted.yml at main

To see runs for this workflow, try: gh run list --workflow=unquoted.yml
```

If the workflow file is invalid, I've seen the `name` field in the API response be the name of the file, and then it won't be found but beyond that I'm not sure why this would happen.@richardgroves: Here's what I get:

```
➜  cdk git:(SBOX/main) GH_DEBUG=api gh workflow run "SBOX - Keycloak themes update" --ref SBOX/main
[git remote -v]
[git config --get-regexp ^remote\..*\.gh-resolved$]
* Request at 2025-06-16 16:46:44.673745 +0100 BST m=+0.117344090
* Request to https://api.github.com/graphql
> POST /graphql HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 391
> Content-Type: application/json; charset=utf-8
> Graphql-Features: merge_queue
> Time-Zone: Europe/London
> User-Agent: GitHub CLI 2.74.1

GraphQL query:
fragment repo on Repository {
    id
    name
    owner { login }
    viewerPermission
    defaultBranchRef {
      name
    }
    isPrivate
  }
  query RepositoryNetwork {
    viewer { login }
    
    repo_000: repository(owner: "org-name", name: "repo-name") {
      ...repo
      parent {
        ...repo
      }
    }
    
  }
GraphQL variables: null

< HTTP/2.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 16 Jun 2025 15:46:45 GMT
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: repo
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Media-Type: github.v4; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: EDA4:251622:E65D9:10FF47:68503C64
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: admin:public_key, gist, read:org, repo
< X-Ratelimit-Limit: 5000
< X-Ratelimit-Remaining: 4984
< X-Ratelimit-Reset: 1750090922
< X-Ratelimit-Resource: graphql
< X-Ratelimit-Used: 16
< X-Xss-Protection: 0

{
  "data": {
    "viewer": {
      "login": "richardgroves"
    },
    "repo_000": {
      "id": "R_kgDOMREegA",
      "name": "repo-name",
      "owner": {
        "login": "org-name"
      },
      "viewerPermission": "ADMIN",
      "defaultBranchRef": {
        "name": "main"
      },
      "isPrivate": true,
      "parent": null
    }
  }
}

* Request took 382.865851ms
* Request at 2025-06-16 16:46:45.079061 +0100 BST m=+0.522663281
* Request to https://api.github.com/repos/org-name/repo-name/actions/workflows?per_page=100&page=1
> GET /repos/org-name/repo-name/actions/workflows?per_page=100&page=1 HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Type: application/json; charset=utf-8
> Time-Zone: Europe/London
> User-Agent: GitHub CLI 2.74.1

< HTTP/2.0 200 OK
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Cache-Control: private, max-age=60, s-maxage=60
< Content-Security-Policy: default-src 'none'
< Content-Type: application/json; charset=utf-8
< Date: Mon, 16 Jun 2025 15:46:45 GMT
< Etag: W/"24f0b42cd763e43cc928b51cbdb3798a740bf41a276f29b30bf7cdcae3f70816"
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: 
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.v3; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: EDA4:251622:E661B:10FF8E:68503C65
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: admin:public_key, gist, read:org, repo
< X-Ratelimit-Limit: 5000
< X-Ratelimit-Remaining: 4976
< X-Ratelimit-Reset: 1750089114
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 24
< X-Xss-Protection: 0

{
  "total_count": 36,
  "workflows": [
    {
      "id": 109906375,
      "node_id": "W_kwDOMREegM4GjQnH",
      "name": "Build and deploy ProductName client",
      "path": ".github/workflows/build-deploy-repo-name-client.yml",
      "state": "active",
      "created_at": "2024-07-30T12:29:22.000+01:00",
      "updated_at": "2024-07-30T12:29:22.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/109906375",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/build-deploy-repo-name-client.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/Build%20and%20deploy%20ProductName%20client/badge.svg"
    },
    {
      "id": 119485436,
      "node_id": "W_kwDOMREegM4HHzP8",
      "name": "Upload Keycloak themes Product Name - LIVE",
      "path": ".github/workflows/upload-themes-live-repo-name-keycloak.yml",
      "state": "active",
      "created_at": "2024-09-26T13:02:17.000+01:00",
      "updated_at": "2025-06-08T15:15:33.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/119485436",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/upload-themes-live-repo-name-keycloak.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/Upload%20Keycloak%20themes%20product%20OS%20-%20LIVE/badge.svg"
    },
    {
      "id": 119486007,
      "node_id": "W_kwDOMREegM4HHzY3",
      "name": "Build and deploy Product Name server - LIVE",
      "path": ".github/workflows/build-deploy-live-repo-name-server.yml",
      "state": "active",
      "created_at": "2024-09-26T13:05:38.000+01:00",
      "updated_at": "2025-04-03T16:50:40.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/119486007",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/build-deploy-live-repo-name-server.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/Build%20and%20deploy%20product%20OS%20server%20-%20LIVE/badge.svg"
    },
    {
      "id": 126862118,
      "node_id": "W_kwDOMREegM4Hj8Mm",
      "name": "product Client Lint",
      "path": ".github/workflows/pr-lint-product-client.yml",
      "state": "active",
      "created_at": "2024-11-08T07:07:07.000+00:00",
      "updated_at": "2024-11-08T07:07:07.000+00:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/126862118",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/pr-lint-product-client.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/product%20Client%20Lint/badge.svg"
    },
    {
      "id": 126862119,
      "node_id": "W_kwDOMREegM4Hj8Mn",
      "name": "product Server Lint",
      "path": ".github/workflows/pr-lint-product-server.yml",
      "state": "active",
      "created_at": "2024-11-08T07:07:07.000+00:00",
      "updated_at": "2024-11-08T07:07:07.000+00:00",Product Name
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/126862119",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/pr-lint-product-server.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/product%20Server%20Lint/badge.svg"
    },
    {
      "id": 129160687,
      "node_id": "W_kwDOMREegM4HstXv",
      "name": "NewName Server Unit Tests",
      "path": ".github/workflows/run-tests-product-server.yml",
      "state": "active",
      "created_at": "2024-11-21T11:03:35.000+00:00",
      "updated_at": "2025-03-14T15:19:16.000+00:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/129160687",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/run-tests-product-server.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/NewName%20Server%20Unit%20Tests/badge.svg"
    },
    {
      "id": 148845109,
      "node_id": "W_kwDOMREegM4I3zI1",
      "name": "Run Playwright Tests",
      "path": ".github/workflows/playwright-ci.yml",
      "state": "active",
      "created_at": "2025-03-10T16:17:06.000+00:00",
      "updated_at": "2025-03-10T16:17:06.000+00:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/148845109",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/playwright-ci.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/Run%20Playwright%20Tests/badge.svg"
    },
    {
      "id": 153516321,
      "node_id": "W_kwDOMREegM4JJnkh",
      "name": "STG - Upload Keycloak themes",
      "path": ".github/workflows/STG - Themes - Upload.yml",
      "state": "active",
      "created_at": "2025-04-02T11:47:38.000+01:00",
      "updated_at": "2025-06-11T17:51:14.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/153516321",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/STG%20-%20Themes%20-%20Upload.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/STG%20-%20Upload%20Keycloak%20themes/badge.svg"
    },
    {
      "id": 153523326,
      "node_id": "W_kwDOMREegM4JJpR-",
      "name": "STG - Client build and deploy",
      "path": ".github/workflows/STG - Client - Build-Deploy - NewName.yml",
      "state": "active",
      "created_at": "2025-04-02T12:29:11.000+01:00",
      "updated_at": "2025-06-11T17:51:14.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/153523326",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/STG%20-%20Client%20-%20Build-Deploy%20-%20NewName.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/STG%20-%20Client%20build%20and%20deploy/badge.svg"
    },
    {
      "id": 153523327,
      "node_id": "W_kwDOMREegM4JJpR_",
      "name": "STG - Server build and deploy",
      "path": ".github/workflows/STG - Server - Build-Deploy - NewName.yml",
      "state": "active",
      "created_at": "2025-04-02T12:29:11.000+01:00",
      "updated_at": "2025-06-11T17:51:14.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/153523327",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/STG%20-%20Server%20-%20Build-Deploy%20-%20NewName.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/STG%20-%20Server%20build%20and%20deploy/badge.svg"
    },
    {
      "id": 156485057,
      "node_id": "W_kwDOMREegM4JU8XB",
      "name": "NewName Server Lint",
      "path": ".github/workflows/pr-lint-NewName-server.yml",
      "state": "active",
      "created_at": "2025-04-16T12:07:01.000+01:00",
      "updated_at": "2025-04-16T12:42:20.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/156485057",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/pr-lint-NewName-server.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/NewName%20Server%20Lint/badge.svg"
    },
    {
      "id": 156485058,
      "node_id": "W_kwDOMREegM4JU8XC",
      "name": "NewName Server Unit Tests",
      "path": ".github/workflows/run-tests-NewName-server.yml",
      "state": "active",
      "created_at": "2025-04-16T12:07:02.000+01:00",
      "updated_at": "2025-04-16T12:42:20.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/156485058",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/run-tests-NewName-server.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/NewName%20Server%20Unit%20Tests/badge.svg"
    },
    {
      "id": 161734765,
      "node_id": "W_kwDOMREegM4Jo-Bt",
      "name": "SBOX2 - Keycloak themes update",
      "path": ".github/workflows/SBOX2 - Themes - Upload.yml",
      "state": "active",
      "created_at": "2025-05-13T17:16:09.000+01:00",
      "updated_at": "2025-05-20T16:24:04.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/161734765",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Themes%20-%20Upload.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Keycloak%20themes%20update/badge.svg"
    },
    {
      "id": 163633277,
      "node_id": "W_kwDOMREegM4JwNh9",
      "name": "DEV - Build - Deploy - Server FastAPI",
      "path": ".github/workflows/DEV - Build - Deploy - Server FastAPI.yml",
      "state": "active",
      "created_at": "2025-05-22T16:25:40.000+01:00",
      "updated_at": "2025-06-10T15:25:06.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/163633277",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/DEV%20-%20Build%20-%20Deploy%20-%20Server%20FastAPI.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/DEV%20-%20Build%20-%20Deploy%20-%20Server%20FastAPI/badge.svg"
    },
    {
      "id": 165687489,
      "node_id": "W_kwDOMREegM4J4DDB",
      "name": "DEV - Upload Keycloak themes",
      "path": ".github/workflows/DEV - Themes - Upload - NewName.yml",
      "state": "active",
      "created_at": "2025-06-02T08:29:07.000+01:00",
      "updated_at": "2025-06-02T08:29:07.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/165687489",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/DEV%20-%20Themes%20-%20Upload%20-%20NewName.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/DEV%20-%20Upload%20Keycloak%20themes/badge.svg"
    },
    {
      "id": 165993896,
      "node_id": "W_kwDOMREegM4J5N2o",
      "name": "SBOX - Build - Deploy - Server FastAPI",
      "path": ".github/workflows/SBOX - Build - Deploy - Server FastAPI.yml",
      "state": "active",
      "created_at": "2025-06-03T14:01:58.000+01:00",
      "updated_at": "2025-06-03T15:36:50.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/165993896",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX%20-%20Build%20-%20Deploy%20-%20Server%20FastAPI.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX%20-%20Build%20-%20Deploy%20-%20Server%20FastAPI/badge.svg"
    },
    {
      "id": 166289286,
      "node_id": "W_kwDOMREegM4J6V-G",
      "name": "SBOX2 - Client build and deploy",
      "path": ".github/workflows/SBOX2 - Client - Build-Deploy - NewName.ai8.yml",
      "state": "active",
      "created_at": "2025-06-04T17:26:47.000+01:00",
      "updated_at": "2025-06-04T17:26:47.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/166289286",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Client%20-%20Build-Deploy%20-%20NewName.ai8.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Client%20build%20and%20deploy/badge.svg"
    },
    {
      "id": 166289287,
      "node_id": "W_kwDOMREegM4J6V-H",
      "name": "SBOX2 - Server build + deploy",
      "path": ".github/workflows/SBOX2 - Server - Build-Deploy - NewName.ai8.yml",
      "state": "active",
      "created_at": "2025-06-04T17:26:47.000+01:00",
      "updated_at": "2025-06-04T17:26:47.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/166289287",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Server%20-%20Build-Deploy%20-%20NewName.ai8.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Server%20build%20+%20deploy/badge.svg"
    },
    {
      "id": 166289288,
      "node_id": "W_kwDOMREegM4J6V-I",
      "name": "SBOX2 - Sub Product build + deploy",
      "path": ".github/workflows/SBOX2 - Sub Product - Build-Deploy - NewName.ai8.yml",
      "state": "active",
      "created_at": "2025-06-04T17:26:47.000+01:00",
      "updated_at": "2025-06-04T17:26:47.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/166289288",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Sub%20Product%20-%20Build-Deploy%20-%20NewName.ai8.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Sub%20Product%20build%20+%20deploy/badge.svg"
    },
    {
      "id": 167655833,
      "node_id": "W_kwDOMREegM4J_jmZ",
      "name": "CFE - Build - Deploy - Test - NewName",
      "path": ".github/workflows/CFE - Build - Deploy - Test - NewName.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:06.000+01:00",
      "updated_at": "2025-06-10T15:25:06.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655833",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/CFE%20-%20Build%20-%20Deploy%20-%20Test%20-%20NewName.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/CFE%20-%20Build%20-%20Deploy%20-%20Test%20-%20NewName/badge.svg"
    },
    {
      "id": 167655834,
      "node_id": "W_kwDOMREegM4J_jma",
      "name": "DEV - Build - Deploy - Client",
      "path": ".github/workflows/DEV - Build - Deploy - Client.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:06.000+01:00",
      "updated_at": "2025-06-10T15:25:06.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655834",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/DEV%20-%20Build%20-%20Deploy%20-%20Client.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/DEV%20-%20Build%20-%20Deploy%20-%20Client/badge.svg"
    },
    {
      "id": 167655835,
      "node_id": "W_kwDOMREegM4J_jmb",
      "name": "DEV - Build - Deploy - Server Django",
      "path": ".github/workflows/DEV - Build - Deploy - Server Django.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:06.000+01:00",
      "updated_at": "2025-06-10T15:25:06.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655835",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/DEV%20-%20Build%20-%20Deploy%20-%20Server%20Django.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/DEV%20-%20Build%20-%20Deploy%20-%20Server%20Django/badge.svg"
    },
    {
      "id": 167655836,
      "node_id": "W_kwDOMREegM4J_jmc",
      "name": "DEV - E2E Tests",
      "path": ".github/workflows/DEV - E2E Tests.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:07.000+01:00",
      "updated_at": "2025-06-10T15:25:07.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655836",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/DEV%20-%20E2E%20Tests.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/DEV%20-%20E2E%20Tests/badge.svg"
    },
    {
      "id": 167655837,
      "node_id": "W_kwDOMREegM4J_jmd",
      "name": "LIVE - Build, Deploy and Upload All",
      "path": ".github/workflows/LIVE - Build - Deploy - Test - repo-name.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:07.000+01:00",
      "updated_at": "2025-06-10T15:25:07.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655837",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/LIVE%20-%20Build%20-%20Deploy%20-%20Test%20-%20repo-name.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/LIVE%20-%20Build,%20Deploy%20and%20Upload%20All/badge.svg"
    },
    {
      "id": 167655838,
      "node_id": "W_kwDOMREegM4J_jme",
      "name": "PROD - Build - Deploy - Test - NewName",
      "path": ".github/workflows/PROD - Build - Deploy - Test - NewName.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:07.000+01:00",
      "updated_at": "2025-06-10T15:25:07.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655838",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/PROD%20-%20Build%20-%20Deploy%20-%20Test%20-%20NewName.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/PROD%20-%20Build%20-%20Deploy%20-%20Test%20-%20NewName/badge.svg"
    },
    {
      "id": 167655842,
      "node_id": "W_kwDOMREegM4J_jmi",
      "name": "SBOX - Keycloak themes update",
      "path": ".github/workflows/SBOX - Themes - Upload.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:07.000+01:00",
      "updated_at": "2025-06-10T15:25:07.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655842",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX%20-%20Themes%20-%20Upload.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX%20-%20Keycloak%20themes%20update/badge.svg"
    },
    {
      "id": 167655845,
      "node_id": "W_kwDOMREegM4J_jml",
      "name": "STG - Build - Deploy - Test - NewName",
      "path": ".github/workflows/STG - Build - Deploy - Test - NewName.yml",
      "state": "active",
      "created_at": "2025-06-10T15:25:07.000+01:00",
      "updated_at": "2025-06-10T15:25:07.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167655845",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/STG%20-%20Build%20-%20Deploy%20-%20Test%20-%20NewName.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/STG%20-%20Build%20-%20Deploy%20-%20Test%20-%20NewName/badge.svg"
    },
    {
      "id": 167916687,
      "node_id": "W_kwDOMREegM4KAjSP",
      "name": "SBOX2 - Sub Product build + deploy",
      "path": ".github/workflows/SBOX2 - Sub Product - Build-Deploy.yml",
      "state": "active",
      "created_at": "2025-06-11T17:08:11.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167916687",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Sub%20Product%20-%20Build-Deploy.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Sub%20Product%20build%20+%20deploy/badge.svg"
    },
    {
      "id": 167916688,
      "node_id": "W_kwDOMREegM4KAjSQ",
      "name": "SBOX2 - Server - Build-Deploy - FastAPI",
      "path": ".github/workflows/SBOX2 - Server - Build-Deploy - FastAPI.yml",
      "state": "active",
      "created_at": "2025-06-11T17:08:11.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167916688",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Server%20-%20Build-Deploy%20-%20FastAPI.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Server%20-%20Build-Deploy%20-%20FastAPI/badge.svg"
    },
    {
      "id": 167928027,
      "node_id": "W_kwDOMREegM4KAmDb",
      "name": "SBOX2 - Server - Build-Deploy - Django",
      "path": ".github/workflows/SBOX2 - Server - Build-Deploy - Django.yml",
      "state": "active",
      "created_at": "2025-06-11T18:07:30.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167928027",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Server%20-%20Build-Deploy%20-%20Django.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Server%20-%20Build-Deploy%20-%20Django/badge.svg"
    },
    {
      "id": 167928028,
      "node_id": "W_kwDOMREegM4KAmDc",
      "name": "SBOX2 - Client build and deploy",
      "path": ".github/workflows/SBOX2 - Client - Build-Deploy.yml",
      "state": "active",
      "created_at": "2025-06-11T18:07:30.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/167928028",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX2%20-%20Client%20-%20Build-Deploy.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX2%20-%20Client%20build%20and%20deploy/badge.svg"
    },
    {
      "id": 168074227,
      "node_id": "W_kwDOMREegM4KBJvz",
      "name": "SBOX - Client build and deploy",
      "path": ".github/workflows/SBOX - Client - Build-Deploy.yml",
      "state": "active",
      "created_at": "2025-06-12T10:09:47.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/168074227",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX%20-%20Client%20-%20Build-Deploy.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX%20-%20Client%20build%20and%20deploy/badge.svg"
    },
    {
      "id": 168074228,
      "node_id": "W_kwDOMREegM4KBJv0",
      "name": "SBOX - Server - Build-Deploy - FastAPI",
      "path": ".github/workflows/SBOX - Server - Build-Deploy - FastAPI.yml",
      "state": "active",
      "created_at": "2025-06-12T10:09:47.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/168074228",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX%20-%20Server%20-%20Build-Deploy%20-%20FastAPI.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX%20-%20Server%20-%20Build-Deploy%20-%20FastAPI/badge.svg"
    },
    {
      "id": 168074229,
      "node_id": "W_kwDOMREegM4KBJv1",
      "name": "SBOX - Sub Product build + deploy",
      "path": ".github/workflows/SBOX - Sub Product - Build-Deploy.yml",
      "state": "active",
      "created_at": "2025-06-12T10:09:47.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/168074229",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX%20-%20Sub%20Product%20-%20Build-Deploy.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX%20-%20Sub%20Product%20build%20+%20deploy/badge.svg"
    },
    {
      "id": 168074230,
      "node_id": "W_kwDOMREegM4KBJv2",
      "name": "SBOX - Server - Build-Deploy - Django",
      "path": ".github/workflows/SBOX - Server - Build-Deploy - Django.yml",
      "state": "active",
      "created_at": "2025-06-12T10:09:47.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/168074230",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/SBOX%20-%20Server%20-%20Build-Deploy%20-%20Django.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/SBOX%20-%20Server%20-%20Build-Deploy%20-%20Django/badge.svg"
    },
    {
      "id": 168659698,
      "node_id": "W_kwDOMREegM4KDYry",
      "name": "DEV - Sub Product build + deploy",
      "path": ".github/workflows/DEV - Sub Product - Build-Deploy.yml",
      "state": "active",
      "created_at": "2025-06-15T15:18:52.000+01:00",
      "updated_at": "2025-06-16T12:20:52.000+01:00",
      "url": "https://api.github.com/repos/org-name/repo-name/actions/workflows/168659698",
      "html_url": "https://github.com/org-name/repo-name/blob/main/.github/workflows/DEV%20-%20Sub%20Product%20-%20Build-Deploy.yml",
      "badge_url": "https://github.com/org-name/repo-name/workflows/DEV%20-%20Sub%20Product%20build%20+%20deploy/badge.svg"
    }
  ]
}

* Request took 226.683785ms
* Request at 2025-06-16 16:46:45.32744 +0100 BST m=+0.771044584
* Request to https://api.github.com/repos/org-name/repo-name/actions/workflows/167655842/dispatches
> POST /repos/org-name/repo-name/actions/workflows/167655842/dispatches HTTP/1.1
> Host: api.github.com
> Accept: application/vnd.github.merge-info-preview+json, application/vnd.github.nebula-preview
> Authorization: token ████████████████████
> Content-Length: 31
> Content-Type: application/json; charset=utf-8
> Time-Zone: Europe/London
> User-Agent: GitHub CLI 2.74.1
Sub Product
{
  "inputs": {},
  "ref": "SBOX/main"
}

< HTTP/2.0 204 No Content
< Access-Control-Allow-Origin: *
< Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
< Content-Security-Policy: default-src 'none'
< Date: Mon, 16 Jun 2025 15:46:45 GMT
< Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
< Server: github.com
< Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
< Vary: Accept-Encoding, Accept, X-Requested-With
< X-Accepted-Oauth-Scopes: 
< X-Content-Type-Options: nosniff
< X-Frame-Options: deny
< X-Github-Api-Version-Selected: 2022-11-28
< X-Github-Media-Type: github.v3; param=merge-info-preview.nebula-preview; format=json
< X-Github-Request-Id: EDA4:251622:E6641:10FFB3:68503C65
< X-Oauth-Client-Id: 178c6fc778ccc68e1d6a
< X-Oauth-Scopes: admin:public_key, gist, read:org, repo
< X-Ratelimit-Limit: 5000
< X-Ratelimit-Remaining: 4975
< X-Ratelimit-Reset: 1750089114
< X-Ratelimit-Resource: core
< X-Ratelimit-Used: 25
< X-Xss-Protection: 0

* Request took 282.593442ms
✓ Created workflow_dispatch event for SBOX - Themes - Upload.yml at SBOX/main

To see runs for this workflow, try: gh run list --workflow=SBOX - Themes - Upload.yml
```

With an unquoted name at the end in the `gh run list ` suggestion.
But my workflow file name has spaces as well, not just the workflow name.@williammartin: Oh I'm so sorry, I went totally off track because I initially failed to `gh workflow run` a workflow with spaces in the name. I totally get what you mean now. Definitely something to fix, thanks for clarifying.

### Acceptance Criteria

**Given** I have a workflow file with spaces in the file name
**When** I run `gh workflow run <workflow name>`
**Then** the suggested `gh run list` command at the end should have the file name quoted.

Solution patch:
diff --git a/.github/workflows/pr-help-wanted.yml b/.github/workflows/pr-help-wanted.yml
index 313e91e14..3482ecd08 100644
--- a/.github/workflows/pr-help-wanted.yml
+++ b/.github/workflows/pr-help-wanted.yml
@@ -20,12 +20,8 @@ jobs:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           PR_AUTHOR: ${{ github.event.pull_request.user.login }}
           PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }}
+          PR_AUTHOR_ASSOCIATION: ${{ github.event.pull_request.author_association }}
         if: "!github.event.pull_request.draft"
         run: |
-          # Skip if PR is from a bot or org member
-          if [ "$PR_AUTHOR_TYPE" = "Bot" ] || gh api orgs/cli/public_members/"${PR_AUTHOR}" --silent 2>/dev/null; then
-            exit 0
-          fi
-
           # Run the script to check for issues without help-wanted label
           bash .github/workflows/scripts/check-help-wanted.sh ${{ github.event.pull_request.html_url }}
diff --git a/.github/workflows/scripts/check-help-wanted.sh b/.github/workflows/scripts/check-help-wanted.sh
index 59c12fecd..d316e8bde 100755
--- a/.github/workflows/scripts/check-help-wanted.sh
+++ b/.github/workflows/scripts/check-help-wanted.sh
@@ -12,6 +12,12 @@ if [ -z "$PR_URL" ]; then
     exit 1
 fi
 
+# Skip if PR is from a bot or org member
+if [ "$PR_AUTHOR_TYPE" = "Bot" ] || [ "$PR_AUTHOR_ASSOCIATION" = "MEMBER" ] || [ "$PR_AUTHOR_ASSOCIATION" = "OWNER" ]; then
+    echo "Skipping check for PR #$PR_URL as it is from a bot ($PR_AUTHOR_TYPE) or an org member ($PR_AUTHOR_ASSOCIATION: MEMBER/OWNER)"
+    exit 0
+fi
+
 # Extract PR number from URL for logging
 PR_NUM="$(basename "$PR_URL")"
 
diff --git a/pkg/cmd/workflow/run/run.go b/pkg/cmd/workflow/run/run.go
index def3cf9e4..2acd1d4cc 100644
--- a/pkg/cmd/workflow/run/run.go
+++ b/pkg/cmd/workflow/run/run.go
@@ -330,7 +330,7 @@ func runRun(opts *RunOptions) error {
 		fmt.Fprintln(out)
 
 		fmt.Fprintf(out, "To see runs for this workflow, try: %s\n",
-			cs.Boldf("gh run list --workflow=%s", workflow.Base()))
+			cs.Boldf("gh run list --workflow=%q", workflow.Base()))
 	}
 
 	return nil



Test patch:
diff --git a/pkg/cmd/workflow/run/run_test.go b/pkg/cmd/workflow/run/run_test.go
index ee1bc5a1e..b121a573d 100644
--- a/pkg/cmd/workflow/run/run_test.go
+++ b/pkg/cmd/workflow/run/run_test.go
@@ -447,7 +447,7 @@ jobs:
 				"ref": "trunk",
 			},
 			httpStubs: stubs,
-			wantOut:   "✓ Created workflow_dispatch event for workflow.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=workflow.yml\n",
+			wantOut:   "✓ Created workflow_dispatch event for workflow.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=\"workflow.yml\"\n",
 		},
 		{
 			name: "nontty good JSON",
@@ -494,7 +494,7 @@ jobs:
 				"ref": "good-branch",
 			},
 			httpStubs: stubs,
-			wantOut:   "✓ Created workflow_dispatch event for workflow.yml at good-branch\n\nTo see runs for this workflow, try: gh run list --workflow=workflow.yml\n",
+			wantOut:   "✓ Created workflow_dispatch event for workflow.yml at good-branch\n\nTo see runs for this workflow, try: gh run list --workflow=\"workflow.yml\"\n",
 		},
 		{
 			// TODO this test is somewhat silly; it's more of a placeholder in case I decide to handle the API error more elegantly
@@ -634,7 +634,7 @@ jobs:
 				"inputs": map[string]interface{}{},
 				"ref":    "trunk",
 			},
-			wantOut: "✓ Created workflow_dispatch event for minimal.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=minimal.yml\n",
+			wantOut: "✓ Created workflow_dispatch event for minimal.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=\"minimal.yml\"\n",
 		},
 		{
 			name: "prompt",
@@ -682,7 +682,7 @@ jobs:
 				},
 				"ref": "trunk",
 			},
-			wantOut: "✓ Created workflow_dispatch event for workflow.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=workflow.yml\n",
+			wantOut: "✓ Created workflow_dispatch event for workflow.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=\"workflow.yml\"\n",
 		},
 		{
 			name: "prompt, workflow choice input",
@@ -731,7 +731,7 @@ jobs:
 				},
 				"ref": "trunk",
 			},
-			wantOut: "✓ Created workflow_dispatch event for workflow.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=workflow.yml\n",
+			wantOut: "✓ Created workflow_dispatch event for workflow.yml at trunk\n\nTo see runs for this workflow, try: gh run list --workflow=\"workflow.yml\"\n",
 		},
 		{
 			name: "prompt, workflow choice missing input",