Skip to content

Commit 1990c64

Browse files
committed
ci: ghs- token prefix should be ghs_
1 parent 81ce628 commit 1990c64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

binderhub/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ def mock_asynchttpclient(request):
124124
if not token:
125125
load_mock_responses("http-record.api.github.com.json")
126126
load_mock_responses("http-record.zenodo.org.json")
127-
if token and token.startswith("ghs-"):
127+
if token and token.startswith("ghs_"):
128128
# The GitHub Actions provided temporary token (secrets.github_token)
129129
# does not have access to api.github.com/gists. Due to this, we mock
130130
# such requests even if such token is provided. We recognize them by
131-
# being a server-to-server token with a ghs- prefix as compared to for
131+
# being a server-to-server token with a ghs_ prefix as compared to for
132132
# example a personal access token.
133133
#
134134
# More about github token prefixes:

0 commit comments

Comments
 (0)