diff --git a/cmd/proxy/Dockerfile b/cmd/proxy/Dockerfile index 084036b21..d2c28fceb 100644 --- a/cmd/proxy/Dockerfile +++ b/cmd/proxy/Dockerfile @@ -42,7 +42,7 @@ RUN apk add --update git git-lfs mercurial openssh-client subversion procps foss mkdir -p /usr/local/go # Add git-credential-github-app for native integration with GitHub Apps -RUN wget -O git-credential-github-app.tar.gz https://github.com/bdellegrazie/git-credential-github-app/releases/download/v0.2.0/git-credential-github-app_v0.2.0_Linux_x86_64.tar.gz \ +RUN wget -O git-credential-github-app.tar.gz https://github.com/bdellegrazie/git-credential-github-app/releases/download/v0.3.0/git-credential-github-app_v0.2.0_Linux_x86_64.tar.gz \ && tar xvzf 'git-credential-github-app.tar.gz' git-credential-github-app -C /usr/local/bin \ && rm git-credential-github-app.tar.gz || true; diff --git a/docs/content/configuration/authentication.md b/docs/content/configuration/authentication.md index 7a3401e8a..002d5d336 100644 --- a/docs/content/configuration/authentication.md +++ b/docs/content/configuration/authentication.md @@ -337,3 +337,20 @@ This instructs Git to authenticate with the GitHub App and cache the results for Now, builds executed through the Athens proxy should be able to clone the `github.com/your-org/your-repo` dependency over GitHub Apps. +### GitHub Enterprise Self-hosted + +To authenticate against a self-hosted GitHub Enterprise, the instructions are the same for GitHub hosted Apps +with the exception for the Git config, which should include your domain, as follows: + +``` +[credential "https://github.example.com/your-org"] + helper = "github-app -username -appId -privateKeyFile -installationId -domain github.example.com" + useHttpPath = true + +[credential "https://github.example.com"] + helper = "cache --timeout=3600" + +[url "https://github.example.com"] + insteadOf = ssh://git@github.com +``` +