mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
refactor: consolidate coercion ownership (#122692)
* refactor: consolidate coercion ownership * test: align shard check with weighted planning * chore: refresh plugin SDK API baseline
This commit is contained in:
committed by
GitHub
parent
7c58151445
commit
c23d66e3b5
@@ -13,6 +13,7 @@ import {
|
||||
guardCommentHeadSha,
|
||||
guardTrustedActorCandidates,
|
||||
isCommentNewerThan,
|
||||
normalizeGuardLoginSet,
|
||||
readBoundedGitHubErrorText,
|
||||
readBoundedGitHubJson,
|
||||
} from "./guard-shared.mjs";
|
||||
@@ -170,21 +171,11 @@ export function isSecuritySensitiveGuardTrustedForHead(comment, currentHeadSha)
|
||||
}
|
||||
|
||||
export function securityApproverSet(value) {
|
||||
return new Set(
|
||||
String(value ?? "")
|
||||
.split(/[\s,]+/u)
|
||||
.map((login) => login.trim().toLowerCase())
|
||||
.filter(Boolean),
|
||||
);
|
||||
return normalizeGuardLoginSet(value);
|
||||
}
|
||||
|
||||
export function securitySensitiveGuardCommentAuthors(value) {
|
||||
return new Set(
|
||||
String(value ?? "github-actions[bot]")
|
||||
.split(/[\s,]+/u)
|
||||
.map((login) => login.trim().toLowerCase())
|
||||
.filter(Boolean),
|
||||
);
|
||||
return normalizeGuardLoginSet(value, "github-actions[bot]");
|
||||
}
|
||||
|
||||
export function isSecuritySensitiveGuardMarkerComment(comment, trustedAuthors) {
|
||||
|
||||
Reference in New Issue
Block a user