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:
Peter Steinberger
2026-08-12 09:25:28 -07:00
committed by GitHub
parent 7c58151445
commit c23d66e3b5
481 changed files with 1611 additions and 2632 deletions
+3 -12
View File
@@ -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) {