Skip to content

Commit 6a17f37

Browse files
committed
Don't log the PAT to the console
1 parent 77fe9c5 commit 6a17f37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/create-practice-repos

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ source ./shared_functions
1818
collab_repo=$1
1919
template_name=$2
2020
practice_repo_name=$3
21+
safe_org_url="https://$ROOT_URL/$CLASS_ORG"
2122
org_url="https://$TOKEN_OWNER:$TEACHER_PAT@$ROOT_URL/$CLASS_ORG"
2223
org_repos_endpoint="https://$INSTANCE_URL/repos/$CLASS_ORG"
2324
template_url="https://github.com/githubtraining/$template_name"
@@ -185,4 +186,4 @@ generate_repos
185186
# switch back to original directory
186187
popd >>log.out 2>&1 || return
187188

188-
print_success "All $practice_repo_name repos can be found here: $org_url"
189+
print_success "All $practice_repo_name repos can be found here: $safe_org_url"

0 commit comments

Comments
 (0)