File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ are welcome! ❤️
55
55
56
56
- **`github-token`:** GitHub token to use for authentication when pulling and
57
57
pushing to the GitHub instance defined by `github-server-url`. By default this
58
- uses `github.token`. Change this to a personal access token if you intend to
59
- do things that go beyond the scope of the current repository .
58
+ is unset. You can set this to `github.token` or a personal access token if you
59
+ want to configure GitHub authentication globally .
60
60
61
61
- **`github-server-url`:** Server URL like `https://github.example.org` to use
62
62
as the scope for the `github-token`. By default this uses `github.server_url`
Original file line number Diff line number Diff line change 9
9
github-token :
10
10
description : >
11
11
GitHub token to use for authentication when pulling and pushing to the
12
- GitHub instance defined by 'github-server-url'. By default this uses
13
- 'github.token'. Change this to a personal access token if you intend to do
14
- things that go beyond the scope of the current repository.
15
- default : ${{ github.token }}
12
+ GitHub instance defined by 'github-server-url'. By default this is unset.
13
+ You can set this to 'github.token' or a personal access token if you want
14
+ to configure GitHub authentication globally.
16
15
github-server-url :
17
16
description : >
18
17
Server URL like 'https://github.example.org' to use as the scope for the
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ if (userName && userEmail) {
60
60
await $ ( { stdio : "inherit" } ) `git config --global user.email ${ userEmail } ` ;
61
61
}
62
62
63
- if ( githubToken && githubServerURL ) {
63
+ if ( githubToken ) {
64
64
const prefix = new URL ( githubServerURL ) . origin + "/" ;
65
65
const basicAuth = Buffer . from (
66
66
`x-access-token:${ githubToken } ` ,
You can’t perform that action at this time.
0 commit comments