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
fatal: could not read Username for 'https://github.com': No such device or address #1112
Comments
You need to handle this yourself in the step Something similar to: RUN --mount=type=secret,id=GIT_AUTH_TOKEN \
set -e
GIT_AUTH_TOKEN=$(cat /run/secrets/GIT_AUTH_TOKEN)
if [ -n "$GIT_AUTH_TOKEN" ]; then
echo "Setting GitHub access token"
git config --global "url.https://x-access-token:${GIT_AUTH_TOKEN}@github.com.insteadof" "https://github.com"
fi
mix deps.get --only $MIX_ENV
EOT Would need to see your Dockerfile to make sure you don't do it with the final stage but dependent one to avoid exposing the secret in git config. |
Contributing guidelines
I've found a bug, and:
Description
Could be related to the following issue but got resolved long time ago and was related to v2 specifically: #162
Steps to reproduce:
Expected behaviour
Should be able to build image
Actual behaviour
Repository URL
No response
Workflow run URL
No response
YAML workflow
Workflow logs
No response
BuildKit logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: