Update CI API tokens

The previous tokens were leaked and invalidated. Use config variables
for Sauce Connect on Travis to eliminate the risk of env var leakage
there.
This commit is contained in:
Oliver Hamlet
2016-12-05 23:18:35 +00:00
parent 66c8976a46
commit c7436586ce
4 changed files with 18 additions and 20 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ function Get-AuthorizationHeaderValue($username, $password) {
}
$currentBranch = $env:APPVEYOR_REPO_BRANCH
$bintrayToken = $env:bintray_token
$bintrayToken = $env:bintray_auth_token
$bintrayRepoUrl = 'https://api.bintray.com/packages/wrinklyninja/loot'
$bintrayHeaders = @{ Authorization = (Get-AuthorizationHeaderValue 'wrinklyninja' $bintrayToken) }
$packages = @(
@@ -15,7 +15,7 @@ if ($env:APPVEYOR_REPO_TAG -eq 'true') {
$branchName = Get-BranchName
Write-Output "`nUpdating masterlists' default branch to $branchName..."
lomad -t $env:access_token -a -d $branchName
lomad -t $env:github_auth_token -a -d $branchName
if ($lastexitcode -eq 0) {
Write-Output "Masterlists' default branches have been updated."