Skip to content

Commit c35574d

Browse files
committed
Remove the unsuported password authentication
GitHub removed the support for password authentication November 13, 2020 at 16:00 UTC in favor of the personal access token. This commit removes all password references from this project. https://developer.github.com/changes/2020-02-14-deprecating-password-auth/
1 parent 79fbe42 commit c35574d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ Open a PowerShell console at the location of the unpacked release and execute th
1212
### Backup all git repositories of a user
1313
Execute the following to backup all git repositories of a GitHub user into the subdirectory `./YYYY-MM-DD/`.
1414
```PowerShell
15-
.\backup_github_repositories.ps1 -userName "user" -userSecret "password"
15+
.\backup_github_repositories.ps1 -userName "user" -userSecret "token"
1616
```
1717

1818
### Backup all git repositores of a organisation
1919
Execute the following to backup all git repositories of a GitHub organisation into the subdirectory `./YYYY-MM-DD/`.
2020
```PowerShell
21-
.\backup_github_repositories.ps1 -userName "user" -userSecret "password" -organisationName "organisation"
21+
.\backup_github_repositories.ps1 -userName "user" -userSecret "token" -organisationName "organisation"
2222
```
2323

2424
### Backup all git repositories of a user into a specific directory

backup_github_repositories.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This script automatically backups all remote GitHub repositories of a user or an
1111
Specifies 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
1717
Specifies the optional GitHub organisation name.
@@ -23,10 +23,10 @@ Overrides the default backup directory.
2323
Overrides 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 (
7272
if ($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

Comments
 (0)