diff --git a/src/nitpick/style/fetchers/github.py b/src/nitpick/style/fetchers/github.py
index 068dedf..4cb0cc5 100644
--- a/src/nitpick/style/fetchers/github.py
+++ b/src/nitpick/style/fetchers/github.py
@@ -50,14 +50,10 @@ class GitHubURL:
         return token
 
     @property
-    def credentials(self) -> tuple[str, str] | tuple[()]:
-        """Credentials encoded in this URL.
-
-        A tuple of ``(api_token, '')`` if present, or empty tuple otherwise.
-
-        """
+    def authorization_header(self) -> dict[str, str] | None:
+        """Authorization header encoded in this URL."""
         token = self.token
-        return (token, "") if token else ()
+        return {"Authorization": f"token {token}"} if token else None
 
     @property
     def git_reference_or_default(self) -> str:
@@ -166,5 +162,5 @@ class GitHubFetcher(HttpFetcher):  # pylint: disable=too-few-public-methods
 
     def _download(self, url: furl, **kwargs) -> str:
         github_url = GitHubURL.from_furl(url)
-        kwargs.setdefault("auth", github_url.credentials)
+        kwargs.setdefault("headers", github_url.authorization_header)
         return super()._download(github_url.raw_content_url, **kwargs)

diff --git a/tests/test_style.py b/tests/test_style.py
index a9bb199..36ea501 100644
--- a/tests/test_style.py
+++ b/tests/test_style.py
@@ -1,6 +1,5 @@
 """Style tests."""
 import warnings
-from base64 import b64encode
 from pathlib import Path
 from textwrap import dedent
 from unittest import mock
@@ -426,8 +425,7 @@ def test_fetch_private_github_urls(tmp_path):
         missing = "thing"{SUGGESTION_END}
         """
     )
-    token_on_basic_auth = b64encode(f"{file_token}:".encode()).decode().strip()
-    assert responses.calls[0].request.headers["Authorization"] == f"Basic {token_on_basic_auth}"
+    assert responses.calls[0].request.headers["Authorization"] == f"token {file_token}"
     project.flake8(offline=True).assert_no_errors()
 
 
@@ -460,8 +458,7 @@ def test_fetch_private_github_urls_no_branch(tmp_path):
         """
     )
     assert responses.calls[0].request.headers["Authorization"] == f"token {file_token}"
-    token_on_basic_auth = b64encode(f"{file_token}:".encode()).decode().strip()
-    assert responses.calls[1].request.headers["Authorization"] == f"Basic {token_on_basic_auth}"
+    assert responses.calls[1].request.headers["Authorization"] == f"token {file_token}"
     project.flake8(offline=True).assert_no_errors()
 
 
@@ -480,10 +477,10 @@ def test_fetch_private_github_urls_no_branch(tmp_path):
         "https://raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml",
     ],
 )
-def test_github_url_without_token_has_no_credentials(style_url):
+def test_github_url_without_token_has_no_authorization_header(style_url):
     """Check private GitHub URLs with a token in various places are parsed correctly."""
     parsed = GitHubURL.from_furl(furl(style_url))
-    assert parsed.credentials == ()
+    assert parsed.authorization_header is None
 
 
 @pytest.mark.parametrize(
@@ -501,10 +498,10 @@ def test_github_url_without_token_has_no_credentials(style_url):
         "https://token@raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml",
     ],
 )
-def test_github_url_with_fixed_userinfo_token_has_correct_credential(url):
+def test_github_url_with_fixed_userinfo_token_has_correct_authorization_header(url):
     """Check private GitHub URLs with a token in various places are parsed correctly."""
     parsed = GitHubURL.from_furl(furl(url))
-    assert parsed.credentials == ("token", "")
+    assert parsed.authorization_header == {"Authorization": "token token"}
 
 
 @pytest.mark.parametrize(
@@ -522,11 +519,11 @@ def test_github_url_with_fixed_userinfo_token_has_correct_credential(url):
         "https://$TOKEN@raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml",
     ],
 )
-def test_github_url_with_variable_userinfo_token_has_correct_credential(url, monkeypatch):
+def test_github_url_with_variable_userinfo_token_has_correct_authorization_header(url, monkeypatch):
     """Check private GitHub URLs with a token in various places are parsed correctly."""
     monkeypatch.setenv("TOKEN", "envvar-token")
     parsed = GitHubURL.from_furl(furl(url))
-    assert parsed.credentials == ("envvar-token", "")
+    assert parsed.authorization_header == {"Authorization": "token envvar-token"}
 
 
 @pytest.mark.parametrize(
@@ -546,18 +543,18 @@ def test_github_url_with_variable_userinfo_token_has_correct_credential(url, mon
         "github://$ENVVAR@andreoliwa/nitpick/initial.toml?token=$NOTUSED",
     ],
 )
-def test_github_url_with_variable_query_token_has_correct_credential(url, monkeypatch):
+def test_github_url_with_variable_query_token_has_correct_authorization_header(url, monkeypatch):
     """Check private GitHub URLs with a token in various places are parsed correctly."""
     monkeypatch.setenv("ENVVAR", "envvar-token")
     parsed = GitHubURL.from_furl(furl(url))
-    assert parsed.credentials == ("envvar-token", "")
+    assert parsed.authorization_header == {"Authorization": "token envvar-token"}
 
 
-def test_github_url_with_missing_envvar_has_empty_credential(monkeypatch):
+def test_github_url_with_missing_envvar_has_empty_authorization_header(monkeypatch):
     """Environment var that doesn't exist is replaced with empty string."""
     monkeypatch.delenv("MISSINGVAR", raising=False)
     parsed = GitHubURL.from_furl(furl("https://github.com/foo/bar/blob/branch/filename.toml?token=$MISSINGVAR"))
-    assert parsed.credentials == ()
+    assert parsed.authorization_header is None
 
 
 def test_github_url_query_token_retains_other_queryparams():
@@ -567,7 +564,7 @@ def test_github_url_query_token_retains_other_queryparams():
     parsed = GitHubURL.from_furl(
         furl("https://github.com/foo/bar/blob/branch/filename.toml?token=somevar&leavemealone=ok")
     )
-    assert parsed.credentials == ("somevar", "")
+    assert parsed.authorization_header == {"Authorization": "token somevar"}
     assert ("leavemealone", "ok") in parsed.url.query.params.items()
 
 

Allow Github Apps Access Tokens in Github URLs
## Expected behavior

nitpick should be able to fetch styles from private Github repos with access tokens derived from Github Apps. 

## Current behavior

Currently only Personal Access Tokens (starting with ghp_) work correctly. Server to Server Tokens (starting with ghs_) don't work and lead to a 404 Not Found.

## Steps to reproduce

1. [Register a Github App](https://docs.github.com/en/apps/creating-github-apps/registering-a-github-app/registering-a-github-app)
1. [Create an Access Token](https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/generating-a-user-access-token-for-a-github-app) for that Github App 
1. Use that token in a Github URL in nitpick

## Possible Solution

Currently the authentication method is a username only Basic Authentication. If a token Authorization header is used, as it is already for getting the default branch, then both Personal Access Tokens and Server to Server Tokens from Github Apps work. 
Could be that also now other Access Tokens also work, but I haven't tried them. 

## Context

We want to use Nitpick in our CI and don't want to use Personal Access Tokens but Github App Access Tokens instead.

## Your environment

<!--- Include as many relevant details about the environment you experienced the bug in -->

- `nitpick` version used: 0.33.2

tests/test_style.py::test_fetch_private_github_urls tests/test_style.py::test_fetch_private_github_urls_no_branch tests/test_style.py::test_github_url_without_token_has_no_authorization_header[github://andreoliwa/nitpick/initial.toml] tests/test_style.py::test_github_url_without_token_has_no_authorization_header[gh://andreoliwa/nitpick/initial.toml] tests/test_style.py::test_github_url_without_token_has_no_authorization_header[github://andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_github_url_without_token_has_no_authorization_header[gh://andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_github_url_without_token_has_no_authorization_header[https://github.com/andreoliwa/nitpick/blob/develop/initial.toml] tests/test_style.py::test_github_url_without_token_has_no_authorization_header[https://raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml] tests/test_style.py::test_github_url_with_fixed_userinfo_token_has_correct_authorization_header[github://token@andreoliwa/nitpick/initial.toml] tests/test_style.py::test_github_url_with_fixed_userinfo_token_has_correct_authorization_header[gh://token@andreoliwa/nitpick/initial.toml] tests/test_style.py::test_github_url_with_fixed_userinfo_token_has_correct_authorization_header[github://token@andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_github_url_with_fixed_userinfo_token_has_correct_authorization_header[gh://token@andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_github_url_with_fixed_userinfo_token_has_correct_authorization_header[https://token@github.com/andreoliwa/nitpick/blob/develop/initial.toml] tests/test_style.py::test_github_url_with_fixed_userinfo_token_has_correct_authorization_header[https://token@raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml] tests/test_style.py::test_github_url_with_variable_userinfo_token_has_correct_authorization_header[github://$TOKEN@andreoliwa/nitpick/initial.toml] tests/test_style.py::test_github_url_with_variable_userinfo_token_has_correct_authorization_header[gh://$TOKEN@andreoliwa/nitpick/initial.toml] tests/test_style.py::test_github_url_with_variable_userinfo_token_has_correct_authorization_header[github://$TOKEN@andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_github_url_with_variable_userinfo_token_has_correct_authorization_header[gh://$TOKEN@andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_github_url_with_variable_userinfo_token_has_correct_authorization_header[https://$TOKEN@github.com/andreoliwa/nitpick/blob/develop/initial.toml] tests/test_style.py::test_github_url_with_variable_userinfo_token_has_correct_authorization_header[https://$TOKEN@raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[github://andreoliwa/nitpick/initial.toml?token=$ENVVAR] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[gh://andreoliwa/nitpick/initial.toml?token=$ENVVAR] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[github://andreoliwa/nitpick@develop/initial.toml?token=$ENVVAR] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[gh://andreoliwa/nitpick@develop/initial.toml?token=$ENVVAR] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[https://github.com/andreoliwa/nitpick/blob/develop/initial.toml?token=$ENVVAR] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[https://raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml?token=$ENVVAR] tests/test_style.py::test_github_url_with_variable_query_token_has_correct_authorization_header[github://$ENVVAR@andreoliwa/nitpick/initial.toml?token=$NOTUSED] tests/test_style.py::test_github_url_with_missing_envvar_has_empty_authorization_header tests/test_style.py::test_github_url_query_token_retains_other_queryparams
tests/test_style.py::test_multiple_styles_overriding_values[False] tests/test_style.py::test_multiple_styles_overriding_values[True] tests/test_style.py::test_include_styles_overriding_values[False] tests/test_style.py::test_include_styles_overriding_values[True] tests/test_style.py::test_minimum_version[False] tests/test_style.py::test_minimum_version[True] tests/test_style.py::test_relative_and_other_root_dirs[False] tests/test_style.py::test_relative_and_other_root_dirs[True] tests/test_style.py::test_symlink_subdir[False] tests/test_style.py::test_symlink_subdir[True] tests/test_style.py::test_relative_style_on_urls tests/test_style.py::test_local_style_should_override_settings tests/test_style.py::test_include_remote_style_from_local_style tests/test_style.py::test_merge_styles_into_single_file[False] tests/test_style.py::test_merge_styles_into_single_file[True] tests/test_style.py::test_invalid_tool_nitpick_on_pyproject_toml[False] tests/test_style.py::test_invalid_tool_nitpick_on_pyproject_toml[True] tests/test_style.py::test_invalid_toml tests/test_style.py::test_invalid_nitpick_files[False] tests/test_style.py::test_invalid_nitpick_files[True] tests/test_style.py::test_always_fetch_github_raw_url[github://andreoliwa/nitpick/initial.toml] tests/test_style.py::test_always_fetch_github_raw_url[gh://andreoliwa/nitpick/initial.toml] tests/test_style.py::test_always_fetch_github_raw_url[github://andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_always_fetch_github_raw_url[gh://andreoliwa/nitpick@develop/initial.toml] tests/test_style.py::test_always_fetch_github_raw_url[https://github.com/andreoliwa/nitpick/blob/develop/initial.toml] tests/test_style.py::test_always_fetch_github_raw_url[https://raw.githubusercontent.com/andreoliwa/nitpick/develop/initial.toml] tests/test_style.py::test_parsing_github_urls[https://github.com/andreoliwa/nitpick/blob/develop/src/nitpick/__init__.py-https://github.com/andreoliwa/nitpick/blob/develop/src/nitpick/__init__.py-develop-develop-] tests/test_style.py::test_parsing_github_urls[gh://andreoliwa/nitpick/src/nitpick/__init__.py-https://github.com/andreoliwa/nitpick/blob/develop/src/nitpick/__init__.py--develop-] tests/test_style.py::test_parsing_github_urls[github://andreoliwa/nitpick/src/nitpick/__init__.py-https://github.com/andreoliwa/nitpick/blob/develop/src/nitpick/__init__.py--develop-] tests/test_style.py::test_parsing_github_urls[https://github.com/andreoliwa/nitpick/blob/v0.26.0/src/nitpick/__init__.py-https://github.com/andreoliwa/nitpick/blob/v0.26.0/src/nitpick/__init__.py-v0.26.0-v0.26.0-@v0.26.0] tests/test_style.py::test_parsing_github_urls[gh://andreoliwa/nitpick@v0.23.1/src/nitpick/__init__.py-https://github.com/andreoliwa/nitpick/blob/v0.23.1/src/nitpick/__init__.py-v0.23.1-v0.23.1-@v0.23.1] tests/test_style.py::test_parsing_github_urls[github://andreoliwa/nitpick@master/src/nitpick/__init__.py-https://github.com/andreoliwa/nitpick/blob/master/src/nitpick/__init__.py-master-master-@master] tests/test_style.py::test_parsing_python_package_urls[py://nitpick/styles/nitpick-style.toml-nitpick.styles-nitpick-style.toml] tests/test_style.py::test_parsing_python_package_urls[py://some_package/nitpick.toml-some_package-nitpick.toml] tests/test_style.py::test_parsing_python_package_urls[pypackage://nitpick/styles/nitpick-style.toml-nitpick.styles-nitpick-style.toml] tests/test_style.py::test_parsing_python_package_urls[pypackage://some_package/nitpick.toml-some_package-nitpick.toml] tests/test_style.py::test_raw_content_url_of_python_package[py://tests/resources/empty-style.toml-tests/resources/empty-style.toml] tests/test_style.py::test_raw_content_url_of_python_package[py://tests/resources/nested_package/empty_style.toml-tests/resources/nested_package/empty_style.toml] tests/test_style.py::test_raw_content_url_of_python_package[pypackage://tests/resources/empty-style.toml-tests/resources/empty-style.toml] tests/test_style.py::test_raw_content_url_of_python_package[pypackage://tests/resources/nested_package/empty_style.toml-tests/resources/nested_package/empty_style.toml] tests/test_style.py::test_protocol_not_supported