Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 1e3ad74

Browse files
committed
token issuer contains the string
1 parent 9b6abed commit 1e3ad74

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

upload/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def parse_params(data: Dict[str, Any]) -> Dict[str, Any]:
237237
def get_repo_with_github_actions_oidc_token(token: str) -> Repository:
238238
unverified_contents = jwt.decode(token, options={"verify_signature": False})
239239
token_issuer = str(unverified_contents.get("iss"))
240-
if token_issuer == "https://token.actions.githubusercontent.com":
240+
if "https://token.actions.githubusercontent.com" in token_issuer:
241241
service = "github"
242242
jwks_url = "https://token.actions.githubusercontent.com/.well-known/jwks"
243243
else:

upload/tests/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def test_determine_repo_for_upload_github_actions(codecov_vcr):
337337
repository = RepositoryFactory.create()
338338
token = jwt.encode(
339339
{
340-
"iss": "https://token.actions.githubusercontent.com",
340+
"iss": "https://token.actions.githubusercontent.com/abcdefg",
341341
"aud": [f"{settings.CODECOV_API_URL}"],
342342
"repository": f"{repository.author.username}/{repository.name}",
343343
"repository_owner": repository.author.username,

0 commit comments

Comments
 (0)