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

Problem accessing private repos when composer is executed inside php-fpm #283

Closed
Vinai opened this issue Jan 7, 2021 · 5 comments
Closed

Comments

@Vinai
Copy link
Contributor

Vinai commented Jan 7, 2021

When executing composer, or running a bin/magento command that in turn executes composer (e.g. sampledata:deploy), private keys are not available to access any private repos defined in the root composer.json.

How do you handle that?
Would it maybe be an option to mount $HOME/.ssh, similar to how $HOME/.composer is mounted?

@Den4ik
Copy link

Den4ik commented Jan 7, 2021

@Vinai you may set github-ouath token at auth.json in composer folder. This solved problem for me.

@springerin
Copy link

@Vinai I've already asked about this issue, please refer to #225
There are 2 options, one i suggested, the second in theory out of the box although is doesn't always work for me.

@Vinai
Copy link
Contributor Author

Vinai commented Jan 8, 2021

Thanks for the info, looking into this...

@ihor-sviziev
Copy link
Contributor

Note - for those who're using WSL2 - you may need to use this in order to have ssh agent running https://esc.sh/blog/ssh-agent-windows10-wsl2/

@Vinai
Copy link
Contributor Author

Vinai commented Jan 8, 2021

Thanks for the input, mounting my .ssh dir with .warden/warden-env.yml worked out for me.

@Vinai Vinai closed this as completed Jan 8, 2021
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

4 participants