Skip to content

Commit ffb308a

Browse files
committed
Authenticate with github_api_token
1 parent 85c75cb commit ffb308a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ branches:
1717
env:
1818
global:
1919
- RUST_BACKTRACE=1
20+
- secure: "mz8crU+l49DgEYyAUqUMyez2qdbV0YU33xWw0MNffOKfaXPuvbkW874iW132sDB/oPyrf6WuGAUOQb7Gr950m4RkLIDAQicpRrduSMq+O6JEHkVOL/dL7fCxcomJNeLPXqilRYHNK6UwQQfWfkh882AYdwwpjj58U4FEk07mgk4="
21+
2022

2123
install:
2224
- |
@@ -92,7 +94,7 @@ matrix:
9294
script:
9395
- |
9496
if [ "$TRAVIS_PULL_REQUEST" != false ]; then
95-
output=$(curl -s "https://github.com/api/repos/rust-lang/rust-clippy/pulls/$TRAVIS_PULL_REQUEST" | \
97+
output=$(curl -H "Authorization: token $GITHUB_API_TOKEN" -s "https://github.com/api/repos/rust-lang/rust-clippy/pulls/$TRAVIS_PULL_REQUEST" | \
9698
python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
9799
grep "changelog: " | \
98100
sed "s/changelog: //g")

0 commit comments

Comments
 (0)