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
    content
    on Feb 2, 2026
  2. added
    triage
    on Feb 2, 2026
  3. added
    github_actions
    and removed
    triage
    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
    Inactive
    on Mar 16, 2026
  7. removed
    Inactive
    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
    Inactive
    on Apr 27, 2026
  10. removed
    Inactive
    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
    Inactive
    on Sep 28, 2026
  15. removed
    Inactive
    on Sep 28, 2026
  16. added a commit that references this issue on Sep 29, 2026
    1e25fc9
  17. github-actions commented on Nov 9, 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.

  18. added
    Inactive
    on Nov 9, 2026
  19. added
    never-stale
    and removed
    Inactive
    on Nov 9, 2026
  20. MiraclebyME commented on Nov 22, 2026

    @MiraclebyME
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 personacontentgithub_actionsnever-stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions