utils: forks: use github token to create repos

Password authentication will stop to work on November 13, 2020

https://developer.github.com/changes/2020-02-14-deprecating-password-auth/

Change-Id: Ic8188d370b20d74c5b21dba56b29b6e23c57126d
diff --git a/utils/fork_aosp.sh b/utils/fork_aosp.sh
index 62ff8be..6e9ed67 100755
--- a/utils/fork_aosp.sh
+++ b/utils/fork_aosp.sh
@@ -7,6 +7,7 @@
 BRANCH=android-11
 SOURCE=android-11.0.0_r<INSERT_CORRECT_TAG>
 USERNAME=<INSERT USER>
+TOKEN=<INSERT TOKEN>
 MANIFEST=android/default.xml
 REMOVE=android/remove.xml
 FORKED=android/omni-aosp.xml
@@ -34,7 +35,7 @@
 
 # Create the repo at github
 echo "Creating $REPO_NAME on GitHub..."
-curl --user $USERNAME --data "{\"name\":\"$REPO_NAME\"}" https://api.github.com/orgs/$GITHUB_ORG/repos
+curl -H 'Authorization: token '$TOKEN'' --data "{\"name\":\"$REPO_NAME\"}" https://api.github.com/orgs/$GITHUB_ORG/repos
 
 # Only works if you are a gerrit admin, will create the named project before pushing (gerrit then replicates to git)
 ssh -p 29418 $USERNAME@gerrit.omnirom.org gerrit create-project $REPO_NAME