Skip to content

Any program on $PATH can be a shell #530

@9999years

Description

@9999years

actionlint only accepts bash, pwsh, python, and sh as valid shell names, but GitHub lets you use any executable on $PATH as a shell.

.github/workflows/example.yml:58:16: shell name "nix develop" is invalid. available names are "bash", "pwsh", "python", "sh" [shell-name]
   |
58 |         shell: nix develop
   |                ^~~

Perhaps there should be an additional configurable allowlist for shell names, like the self-hosted-runner.labels key.

See: "TIL: Any program can be a GitHub Actions shell" by William Woodruff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions