alitheg commented on code in PR #501:
URL:
https://github.com/apache/tooling-trusted-releases/pull/501#discussion_r2685785167
##########
atr/db/interaction.py:
##########
@@ -395,6 +388,36 @@ async def tasks_ongoing_revision(
return task_count, latest_revision
+async def trusted_jwt(publisher: str, jwt: str, phase: TrustedProjectPhase) ->
tuple[dict[str, Any], str, sql.Project]:
+ if publisher != "github":
+ raise InteractionError(f"Publisher {publisher} not supported")
+ payload = await jwtoken.verify_github_oidc(jwt)
+ if payload["actor_id"] != _GITHUB_TRUSTED_ROLE_NID:
+ asf_uid = await ldap.github_to_apache(payload["actor_id"])
+ else:
+ asf_uid = "arm" # TODO: What to do here?
Review Comment:
@sbp Going to amend this commit when this is fixed - but what should we do
here? See above where this JWT now comes from the tooling role instead of a
named individual.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]