cdown / travis-automerge

A script to automerge successful builds to a branch
Other
15 stars 16 forks source link

Allow pulling from private repositories #1

Open cdown opened 8 years ago

cdown commented 8 years ago

@emmekappa writes:

Hi Chris,

I read your article @ https://chrisdown.name/2015/09/27/auto-merging-successful-builds-from-travis-ci.html

I sugget you to edit the script to include the GITHUB_SECRET_TOKEN also during the cloning to allow the scripts to work also on private repositories.

line 17 should be git clone "https://$GITHUB_SECRET_TOKEN@github.com/$GITHUB_REPO" "$repo_temp”

Cheers, Michele

Only one problem with that: that will display the secret in the output, so it would require the cloning to also be redirected to /dev/null to avoid leakage.

emmekappa commented 8 years ago

Opened a pull request with this fix.