diff --git a/configs/config.json b/configs/config.json index fb01d5fd..dd8a8654 100644 --- a/configs/config.json +++ b/configs/config.json @@ -3,7 +3,7 @@ "Configs": [ { "Type": "github", - "GitHubUser": "TaqlaAI" + "GitHubOrg": "TaqlaAI" }, { "Type": "gitlab", diff --git a/entrypoint.zoekt-indexserver.sh b/entrypoint.zoekt-indexserver.sh index 3796ce94..4d14e758 100644 --- a/entrypoint.zoekt-indexserver.sh +++ b/entrypoint.zoekt-indexserver.sh @@ -17,6 +17,12 @@ fi if [ -n "$GITLAB_TOKEN" ]; then echo "$GITLAB_TOKEN" > "$HOME/.gitlab-token" chmod 600 "$HOME/.gitlab-token" + + # Configure Git with the provided GITLAB_TOKEN + echo "machine gitlab.com + login oauth + password ${GITLAB_TOKEN}" > "$HOME/.netrc" + chmod 600 "$HOME/.netrc" else echo -e "\e[33mWarning: GitLab repositories will not be indexed since GITLAB_TOKEN was not set. If you are not using GitLab, disregard.\e[0m" fi