cross-platform-actions / action

Cross-platform GitHub action
MIT License
128 stars 19 forks source link

SSH host port collision #59

Closed PiotrSikora closed 1 year ago

PiotrSikora commented 1 year ago

The SSH host port is hardcoded to 2847, which prevents starting multiple instances of this action on the same host (e.g. when using the act tool).

jacob-carlborg commented 1 year ago

act is running inside a container. Can't you map the port to a different host port?

PiotrSikora commented 1 year ago

Digging deeper into this, it looks that act runs containers with host network by default, and changing it to the bridge network fixes the problem for me:

act -j openbsd --container-options "--privileged --network bridge"

Thanks for the suggestion!