Skip to content

Commit c906278

Browse files
authored
try this
1 parent d48ae1f commit c906278

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ are welcome! ❤️
5555

5656
- **`github-token`:** GitHub token to use for authentication when pulling and
5757
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.
6060

6161
- **`github-server-url`:** Server URL like `https://github.example.org` to use
6262
as the scope for the `github-token`. By default this uses `github.server_url`

action.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ inputs:
99
github-token:
1010
description: >
1111
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.
1615
github-server-url:
1716
description: >
1817
Server URL like 'https://github.example.org' to use as the scope for the

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ if (userName && userEmail) {
6060
await $({ stdio: "inherit" })`git config --global user.email ${userEmail}`;
6161
}
6262

63-
if (githubToken && githubServerURL) {
63+
if (githubToken) {
6464
const prefix = new URL(githubServerURL).origin + "/";
6565
const basicAuth = Buffer.from(
6666
`x-access-token:${githubToken}`,

0 commit comments

Comments
 (0)