[GH-ISSUE #218] Sudo not available #151

Closed
opened 2026-03-01 21:40:41 +03:00 by kerem · 3 comments
Owner

Originally created by @kenorb on GitHub (May 2, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/218

$  act
...
[Tests-Shell/Test-Provision] ⭐  Run actions/checkout@v2
[Tests-Shell/Test-Provision]   ✅  Success - actions/checkout@v2
[Tests-Shell/Test-Provision] ⭐  Run Runs provisioning script
| /github/workflow/1: line 2: sudo: command not found
[Tests-Shell/Test-Provision]   ❌  Failure - Runs provisioning script

It seems sudo is available by default in at GitHub Actions (using ubuntu-latest).

Originally created by @kenorb on GitHub (May 2, 2020). Original GitHub issue: https://github.com/nektos/act/issues/218 ``` $ act ... [Tests-Shell/Test-Provision] ⭐ Run actions/checkout@v2 [Tests-Shell/Test-Provision] ✅ Success - actions/checkout@v2 [Tests-Shell/Test-Provision] ⭐ Run Runs provisioning script | /github/workflow/1: line 2: sudo: command not found [Tests-Shell/Test-Provision] ❌ Failure - Runs provisioning script ``` It seems `sudo` is available by default in at GitHub Actions (using `ubuntu-latest`).
kerem 2026-03-01 21:40:41 +03:00
Author
Owner

@aangelinsf commented on GitHub (May 8, 2020):

without sudo, a command I require fails:

sudo /etc/init.d/mysql start
<!-- gh-comment-id:626001093 --> @aangelinsf commented on GitHub (May 8, 2020): without sudo, a command I require fails: ``` sudo /etc/init.d/mysql start ```
Author
Owner

@Santiago8888 commented on GitHub (Jun 14, 2020):

Related to #107, perhaps only the full docker image is required.

<!-- gh-comment-id:643805658 --> @Santiago8888 commented on GitHub (Jun 14, 2020): Related to #107, perhaps only the full docker image is required.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 14, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:673772115 --> @github-actions[bot] commented on GitHub (Aug 14, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#151
No description provided.