Require receipts for non-github bridge activity

This commit is contained in:
Meta Vens 2026-06-17 12:06:20 +01:00
commit a22092feff
8 changed files with 131 additions and 0 deletions

View file

@ -528,6 +528,7 @@ function postDispatchReceipt(request, dispatchRecord, options) {
"--authority-ref", "bifrost_dispatch_started_receipt",
...optionalArg("--target-repository-full-name", request.targetRepositoryFullName),
...optionalArg("--persona-avatar-url", personaAvatarUrl),
...bridgeRecoveryArgs(options),
], bifrostRoot);
}
@ -540,6 +541,10 @@ function resolveDispatchReceiptChannelId(options) {
);
}
function bridgeRecoveryArgs(options) {
return allowsUnreceiptedActivity(options) ? ["--allow-unreceipted-activity", "true"] : [];
}
function renderDispatchReceiptContent(request) {
const topic = summarizeRequestTopic(request);
const actor = request.targetAgentIdentity