Require receipts for non-github bridge activity
This commit is contained in:
parent
f32c9127a0
commit
a22092feff
8 changed files with 131 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue