Skip to content

Commit d4b5abb

Browse files
author
NIO
committed
fix(scripts): satisfy oxlint in control-plane audit proof
1 parent ec7aa8b commit d4b5abb

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

scripts/proof-audit-control-plane-exposure.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ const deniedCfg = {
3131

3232
console.log("=== openclaw security audit exposure matrix (programmatic) ===");
3333

34-
for (const [label, cfg] of [
35-
["open group + coding profile", openGroupCodingCfg],
36-
["open DM + tools.allow gateway", openDmGatewayCfg],
37-
["open group + deny gateway/cron", deniedCfg],
38-
]) {
34+
const cases = [
35+
{ label: "open group + coding profile", cfg: openGroupCodingCfg },
36+
{ label: "open DM + tools.allow gateway", cfg: openDmGatewayCfg },
37+
{ label: "open group + deny gateway/cron", cfg: deniedCfg },
38+
];
39+
40+
for (const { label, cfg } of cases) {
3941
const findings = collectExposureMatrixFindings(cfg);
4042
const controlPlane = findings.filter(
4143
(f) => f.checkId === "security.exposure.open_groups_with_control_plane_tools",

0 commit comments

Comments
 (0)