- In GitHub, go to settings and Personal access tokens;
- Click
Generate a new tokenand fill in the description; - As scope select repo;
- Copy the generated token.
Similar to the Travis-CI documentation
- Go to the repository in Travis-CI and go to settings;
- In the Environment Variables section give the variable a
Name; - Paste the copied token as
Value; - Click on
Add; - Make sure the
Display value in build logswitch isOFF.
Follow the method described by the Travis-CI documentation