Skip to content

jobs.<job_id>.steps[*].working-directory doesn't say it's incompatible with uses #42699

Open

Description

@jsoref

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idstepsworking-directory

What part(s) of the article would you like to see updated?

Using the working-directory keyword, you can specify the working directory of where to run the command.

- name: Clean temp directory
  run: rm -rf *
  working-directory: ./temp

It doesn't actually say that it only works for run: commands. And it doesn't explain what would happen if you use a uses: command that's implemented as a composite action.

Additional information

Apparently the languageservices code believes that working-directory is only valid for run-step things: https://github.com/actions/languageservices/blob/fb5c6e4f27bb1ddf512609a6a341aadd17ce86f3/workflow-parser/src/action-v1.0.json#L339-L372

Image

Activity

  1. added
    contentThis issue or pull request belongs to the Docs Content team
    on Feb 2, 2026
  2. added
    triageDo not begin working on this issue until triaged by the team
    on Feb 2, 2026
  3. added
    github_actionsPull requests that update GitHub Actions content
    and removed
    triageDo not begin working on this issue until triaged by the team
    on Feb 6, 2026
  4. Sharra-writes commented on Feb 6, 2026

    @Sharra-writes
    Contributor

    @jsoref This is one for the Actions team. There's still a backlog on that, but I'll get it in front of them when I'm able to.

  5. github-actions commented on Mar 16, 2026

    @github-actions
    Contributor

    A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

  6. added
    InactiveWill be closed automatically by a stall check if no activity is detected.
    on Mar 16, 2026
  7. removed
    InactiveWill be closed automatically by a stall check if no activity is detected.
    on Mar 17, 2026
  8. github-actions commented on Apr 27, 2026

    @github-actions
    Contributor

    A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

  9. added
    InactiveWill be closed automatically by a stall check if no activity is detected.
    on Apr 27, 2026
  10. removed
    InactiveWill be closed automatically by a stall check if no activity is detected.
    on Apr 29, 2026
  11. christiandouka-blip commented on Aug 25, 2026

    @christiandouka-blip

    Hi! I would like to work on this issue. I plan to update the jobs.<job_id>.steps[*].working-directory documentation to clarify that working-directory applies to run steps and is not supported with uses steps. I will keep the change focused on the documentation described in this issue.

  12. jsoref commented on Aug 25, 2026

    @jsoref
    ContributorAuthor

    @christiandouka-blip this issue isn't open to external contributors. Please see https://github.com/github/docs/labels?q=help

  13. github-actions commented on Sep 28, 2026

    @github-actions
    Contributor

    A stale label has been added to this issue, because it has been open for 30 days with no activity. If you think this issue should remain open, please add a new comment.

  14. added
    InactiveWill be closed automatically by a stall check if no activity is detected.
    on Sep 28, 2026
  15. removed
    InactiveWill be closed automatically by a stall check if no activity is detected.
    on Sep 28, 2026
  16. added a commit that references this issue on Sep 29, 2026
    1e25fc9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    builder personacontentThis issue or pull request belongs to the Docs Content teamgithub_actionsPull requests that update GitHub Actions content

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions