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

GITHUB_HOSTNAME is ignored #145

Open
dhsmith1001 opened this issue Jan 29, 2024 · 1 comment
Open

GITHUB_HOSTNAME is ignored #145

dhsmith1001 opened this issue Jan 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dhsmith1001
Copy link

dhsmith1001 commented Jan 29, 2024

Describe the bug
I exported my GHE host as:
export GITHUB_HOSTNAME="github.houston.softwaregrp.net"

When I run git-xargs it seems to be trying to clone from github.com:
[git-xargs] INFO[2024-01-29T17:40:17-05:00] git-xargs running...
[git-xargs] DEBU[2024-01-29T17:40:17-05:00] Looking up filename provided repo Name=beanutils Organization=identity-governance-team
[git-xargs] DEBU[2024-01-29T17:40:17-05:00] error getting single repo AllowedRepoName=beanutils AllowedRepoOwner=identity-governance-team Error="GET https://api.github.com/repos/identity-governance-team/beanutils: 401 Bad credentials []" Response Status Code=401
ERROR: GET https://api.github.com/repos/identity-governance-team/beanutils: 401 Bad credentials []

To Reproduce
Steps to reproduce the behavior including the relevant Terraform/Terragrunt/Packer version number and any code snippets and module inputs you used.

export GITHUB_HOSTNAME="github.houston.softwaregrp.net"
export LOG_LEVEL=TRACE

git-xargs \
--repos /tmp/xargs-repos.txt \
--branch-name parentpomupdate \
--commit-message "Updated parent pom version" \
--loglevel "${LOG_LEVEL}" \
--keep-cloned-repositories true \
--dry-run \
update-parent-pom-version.sh pom.xml "${version}"

Expected behavior
The clone command should be against my specified GHE server.

xargs-repos.txt

@dhsmith1001 dhsmith1001 added the bug Something isn't working label Jan 29, 2024
@tdharris
Copy link

tdharris commented May 7, 2024

This appears to be fixed by the v0.1.11 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants