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

(jx promote) --git-user flag is nonfunctional #8526

Open
roulettedares opened this issue Mar 7, 2023 · 0 comments
Open

(jx promote) --git-user flag is nonfunctional #8526

roulettedares opened this issue Mar 7, 2023 · 0 comments

Comments

@roulettedares
Copy link

roulettedares commented Mar 7, 2023

on a runner where ~/.git-credentials does not exist and git config --global credential.helper store is not manually run, this command

 jx promote -b --all --timeout 1h --no-poll --add-changelog ../changelog.md \
    --git-user "my-botzzz" \
    --git-token $GITHUB_TOKEN

fails and prompts for a username:

about to run: git clone https://github.com/my-org/gitops-dev /tmp/jx-git-2818598956 in dir /tmp
Username for 'https://github.com':

i would expect that jx promote would respect some combination of cli flags and/or env vars:

        export GIT_USER=x-access-token
        export GIT_USERNAME=x-access-token
        export GITHUB_USER=x-access-token
        export GITHUB_USERNAME=x-access-token
        export GH_USERNAME=x-access-token
        export GITHUB_TOKEN=xyz
        export GIT_TOKEN=xyz
        export GH_TOKEN=xyz

but none of them work

as a side note, i also tried creating ~/git/credentials with no success. based on the logic in jx-helpers, i would also expect this to work

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

1 participant