From c4fb232756fb258fc57636e520cdba9ac67096d0 Mon Sep 17 00:00:00 2001 From: Djavid Gabibiyan Date: Wed, 21 Oct 2020 19:09:45 +0500 Subject: [PATCH] build: use GitHub token for API requests (#78) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f4c4986..1dd1499 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ install: - npm ci - cp .env.example .env # Get the latest version of travis-ci-tools - - curl -s https://api.github.com/repos/dashevo/travis-ci-tools/releases/latest | jq -r '.tarball_url' | xargs -I {} -n1 wget -O travis-ci-tools.tar.gz -q {} + - curl -u $GITHUB_USER:$GITHUB_TOKEN -s https://api.github.com/repos/dashevo/travis-ci-tools/releases/latest | jq -r '.tarball_url' | xargs -I {} -n1 wget -O travis-ci-tools.tar.gz -q {} - mkdir ~/travis-ci-tools && tar -C ~/travis-ci-tools -xvf travis-ci-tools.tar.gz - export CI_TOOLS_DIR="$(ls ~/travis-ci-tools)" - cd ~/travis-ci-tools/$CI_TOOLS_DIR