Skip to content

GITHUB_HOSTNAME is ignored #145

Open
@dhsmith1001

Description

@dhsmith1001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions