Skip to content

Commit

Permalink
Use the test repo PAT set by the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Willford committed Aug 13, 2018
1 parent 06793f2 commit 8505a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/Mac/PrepFunctionalTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ fi
git config --global credential.helper "!/Library/Java/JavaVirtualMachines/jdk-$JAVAVERSION.jdk/Contents/Home/bin/java -Ddebug=false --add-modules java.xml.bind -Djava.net.useSystemProxies=true -jar /usr/local/Cellar/git-credential-manager/2.0.3/libexec/git-credential-manager-2.0.3.jar" || exit 1

# If we're running on an agent where the PAT environment variable is set and a URL is passed into the script, add it to the keychain.
PAT=$SYSTEM_ACCESSTOKEN
PATURL=$1
PAT=$2
if [[ ! -z $PAT && ! -z $PATURL ]] ; then
security add-generic-password -a "Personal Access Token" -s "gcm4ml:git:$PATURL" -D Credential -w $PAT || exit 1
fi

0 comments on commit 8505a6a

Please sign in to comment.