Skip to content

GitHub Action: POSIX "command" command unavailable in ubuntu-latest? #26788

Answered by airtower-luna
pmonks asked this question in Actions
Discussion options

You must be logged in to vote

command is a built-in function of the POSIX shell, so there is no binary. You can call a shell to run your command:

sh -c "command -v [something]"

Warning: If the “something” is user-provided or from another untrusted source that would be vulnerable to shell injection. ⚠️

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants