diff --git a/scripts/generate_receiver_api.sh b/scripts/generate_receiver_api.sh index e060910..e607d92 100755 --- a/scripts/generate_receiver_api.sh +++ b/scripts/generate_receiver_api.sh @@ -8,12 +8,7 @@ OUTPUT_DIR="generated/receiver_api" rm -rf "$CHECKOUT_DIR" -# In gitlab we authenticate with the job token when cloning -if [ -z "${CI_JOB_TOKEN}" ]; then - git clone git@gitlab.com:stackvista/platform/stackstate-openapi.git "$CHECKOUT_DIR" -else - git clone "https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/stackvista/platform/stackstate-openapi.git" "$CHECKOUT_DIR" -fi +git clone "https://github.com/StackVista/stackstate-openapi.git" "$CHECKOUT_DIR" git -C "$CHECKOUT_DIR" checkout "$OPENAPI_VERSION"