GitHubTokenExchangeEvent#

class gafaelfawr.events.GitHubTokenExchangeEvent(*, username, github_project_id, token, repository, job_workflow_ref, ref, environment=None, event_name=None, actor=None, run_id=None, run_attempt=None, jti)#

Bases: EventPayload

A GitHub Actions workflow exchanged an ID token for a token.

Together with the token change history, this records which workflow run obtained a given token and who triggered that run. The claims are those of the GitHub Actions ID token that was exchanged.

Parameters:
  • username (str)

  • github_project_id (int)

  • token (str)

  • repository (str)

  • job_workflow_ref (str)

  • ref (str)

  • environment (str | None, default: None)

  • event_name (str | None, default: None)

  • actor (str | None, default: None)

  • run_id (str | None, default: None)

  • run_attempt (str | None, default: None)

  • jti (str)

Attributes Summary

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Attributes Documentation

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].