fix(worktree): sign and attribute agent commits at push; forge git credentials (#1816, #1817)
deploy / plan (push) Failing after 7s
deploy / gate (push) Skipped
deploy / archied-image (push) Skipped
deploy / agent-image (push) Skipped
deploy / dist-zip (push) Skipped

This commit is contained in:
sam committed 2026-11-09 00:11:54 +11:00
1 parent 21a523bd35
commit fa76f4c994
9 files changed
+633 -114

No files matched your search

+17
View File
@@ -250,3 +250,20 @@ var ErrBadWebhook = errors.New("undecodable webhook payload")
type WebhookParser interface {
ParseWebhook(ctx context.Context, headers map[string]string, body []byte) (WebhookEvent, error)
}
// GitCredential is a short-lived git credential for one repository and the
// identity commits through it carry.
type GitCredential struct {
Username string
Token string
ExpiresAt time.Time
CommitName string
CommitEmail string
}
// GitCredentialIssuer is a forge that mints per-repository git credentials,
// such as an app installation token. It returns errors.ErrUnsupported when
// git should use the connection's stored token.
type GitCredentialIssuer interface {
GitCredential(ctx context.Context, owner, repo string) (GitCredential, error)
}