Skip to content

Commit

Permalink
don't use the default ci job token variable
Browse files Browse the repository at this point in the history
  • Loading branch information
saucoide committed Jun 11, 2024
1 parent c43976e commit 5a5b905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs_multirepo_plugin/scripts/sparse_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ if [[ -n "$AccessToken" ]]; then
git config http.extraheader "AUTHORIZATION: bearer $AccessToken"
elif [[ -n "$GithubAccessToken" ]]; then
url_to_use="${protocol}://x-access-token:$GithubAccessToken@$url_rest"
elif [[ -n "$CI_JOB_TOKEN" ]]; then
url_to_use="${protocol}://gitlab-ci-token:$CI_JOB_TOKEN@$url_rest"
elif [[ -n "$GitlabCIJobToken" ]]; then
url_to_use="${protocol}://gitlab-ci-token:$GitlabCIJobToken@$url_rest"
else
url_to_use="$url"
fi
Expand Down
2 changes: 2 additions & 0 deletions mkdocs_multirepo_plugin/scripts/sparse_clone_old.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ if [[ -n "$AccessToken" ]]; then
git config http.extraheader "AUTHORIZATION: bearer $AccessToken"
elif [[ -n "$GithubAccessToken" ]]; then
url_to_use="${protocol}://x-access-token:$GithubAccessToken@$url_rest"
elif [[ -n "$GitlabCIJobToken" ]]; then
url_to_use="${protocol}://gitlab-ci-token:$GitlabCIJobToken@$url_rest"
else
url_to_use="$url"
fi
Expand Down

0 comments on commit 5a5b905

Please sign in to comment.