mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #850] Issue: act assumes bash shell when connecting to a container #516
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#516
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @till on GitHub (Oct 22, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/850
Originally assigned to: @catthehacker on GitHub.
System information
Expected behaviour
Actual behaviour
log output (without verbose)
``` ❯ act "pull_request" [test/deployment] 🚀 Start image=quay.io/pngmbh/quantum-cli:latest [test/deployment] 🐳 docker run image=quay.io/pngmbh/quantum-cli:latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [test/deployment] 🐳 docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root [test/deployment] ⭐ Run quantum-cli [test/deployment] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /dir/workflow/0] user= | OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "bash": executable file not found in $PATH: unknown [test/deployment] ❌ Failure - quantum-cli Error: exit with `FAILURE`: 126 ```The image is alpine-based, so there is no
bashincluded by default.A simple test of the image works though:
Workflow and/or repository
runs quantum-cli --help
Steps to reproduce
act "pull_request"actoutputLog (without env stuff)
@till commented on GitHub (Oct 22, 2021):
As a follow-up, the crash seems "so hard", that containers stay running. Let me know if you'd like another ticket.
@buddyjansen8 commented on GitHub (Oct 25, 2021):
Add the default shell executor to the job:
@till commented on GitHub (Oct 30, 2021):
Thank you, that works!