Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Denied at step start #105

Open
wasuaje opened this issue Jul 24, 2023 · 2 comments
Open

Permission Denied at step start #105

wasuaje opened this issue Jul 24, 2023 · 2 comments

Comments

@wasuaje
Copy link

wasuaje commented Jul 24, 2023

This is the output from my workflow at the very beginning:


/usr/bin/docker pull ghcr.io/trstringer/manual-approval:1.9.0
  permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post "http://%2Fvar%2Frun%2Fdocker.sock/v1.2[4](https://github.com/wasuaje/fastERPTodocaser/actions/runs/5647730094/job/15298594526#step:2:4)/images/create?fromImage=ghcr.io%2Ftrstringer%2Fmanual-approval&tag=1.9.0": dial unix /var/run/docker.sock: connect: permission denied

the code

    steps:
      - name: Manual Workflow Approval
        uses: trstringer/[email protected]
        with:
          secret: ${{ secrets.GITHUB_TOKEN }}
          approvers: wasuaje
          minimum-approvals: 1

any suggestion?

Update: I think the issue it is trying to run /usr/bin/docker, for security reasons github runner is in a non-proviledge user which only has SUDO docker access, so I usually make "sudo docker xxxx yyy zzz". This action points to "/usr/bin/docker". Any way to bypass this config?

I tried hard to make aliases, through .env file setting up a pre-run script, which seems to work (alias docker='sudo docker') At SO level works, and run setup shows it works, but somehow can't make it work with this action.

Any help is appreciated

@trstringer
Copy link
Owner

I think that might be a GitHub Actions feature if I understand your issue correctly.

@saud-tkxel
Copy link

saud-tkxel commented Dec 7, 2023

+1 same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants