Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JWTAuthMiddleware ¶
JWTMiddleware validates a JWT token was passed by a GitHub Action and adds claims to the context
Types ¶
type GitHubClaims ¶
type GitHubClaims struct {
Iss string `json:"iss"`
Sub string `json:"sub"`
Repository string `json:"repository"`
RepositoryOwner string `json:"repository_owner"`
RepositoryVisibility string `json:"repository_visibility"`
Actor string `json:"actor"`
Workflow string `json:"workflow"`
Ref string `json:"ref"`
SHA string `json:"sha"`
EventName string `json:"event_name"`
Exp int64 `json:"exp"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) RepoAdminToken ¶
func (h *Handler) RepoAdminToken(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.