@@ -11,7 +11,7 @@ This script automatically backups all remote GitHub repositories of a user or an
1111Specifies the GitHub user name.
1212
1313. PARAMETER userSecret
14- Specifies the password or personal access token of the GitHub user.
14+ Specifies the personal access token of the GitHub user.
1515
1616. PARAMETER organisationName
1717Specifies the optional GitHub organisation name.
@@ -23,10 +23,10 @@ Overrides the default backup directory.
2323Overrides the default concurrency of 8.
2424
2525. EXAMPLE
26- .\backup_github_repositories.ps1 -userName "user" -userSecret "secret "
26+ .\backup_github_repositories.ps1 -userName "user" -userSecret "token "
2727
2828. EXAMPLE
29- .\backup_github_repositories.ps1 -userName "user" -userSecret "secret " -organisationName "organisation"
29+ .\backup_github_repositories.ps1 -userName "user" -userSecret "token " -organisationName "organisation"
3030
3131. EXAMPLE
3232.\backup_github_repositories.ps1 -backupDirectory "C:\myBackupDirectory" -maxConcurrency 1
@@ -46,10 +46,10 @@ Param (
4646
4747 [Parameter (
4848 Mandatory = $True ,
49- HelpMessage = " The password or personal access token of the GitHub user." ,
49+ HelpMessage = " The personal access token of the GitHub user." ,
5050 ParameterSetName = ' SecureSecret'
5151 )]
52- [Security.SecureString ]${user password or personal access token} ,
52+ [Security.SecureString ]${personal access token} ,
5353 [Parameter (
5454 Mandatory = $True ,
5555 ParameterSetName = ' PlainTextSecret'
@@ -72,7 +72,7 @@ Param (
7272if ($userSecret ) {
7373 $secureStringUserSecret = $userSecret | ConvertTo-SecureString - AsPlainText - Force
7474} else {
75- $secureStringUserSecret = ${user password or personal access token}
75+ $secureStringUserSecret = ${personal access token}
7676}
7777
7878# Convert the secure user secret string into a plain text representation.
0 commit comments