gruntwork-io / git-xargs

git-xargs is a command-line tool (CLI) for making updates across multiple Github repositories with a single command.
https://blog.gruntwork.io/introducing-git-xargs-an-open-source-tool-to-update-multiple-github-repos-753f9f3675ec
Apache License 2.0
921 stars 63 forks source link

GITHUB_HOSTNAME is ignored #145

Open dhsmith1001 opened 5 months ago

dhsmith1001 commented 5 months ago

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

tdharris commented 2 months ago

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