Skip to content

Commit

Permalink
Problem: Travis security on PRs break jobs
Browse files Browse the repository at this point in the history
Solution: avoid using encrypted variables when on PR
  • Loading branch information
gotcha committed Mar 12, 2021
1 parent d685efd commit a7e4ad6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ notifications:
- buildout-development@googlegroups.com

script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./.travis/docker_login_on_non_pull_requests.sh; fi'
- ./ci_build.sh

env:
Expand Down
1 change: 1 addition & 0 deletions .travis/docker_login_on_non_pull_requests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
1 change: 1 addition & 0 deletions news/travis-pr.develop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Avoid broken jobs on Travis because of security on PRs

0 comments on commit a7e4ad6

Please sign in to comment.