Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
style: fix Prettier formatting in safe_outputs_config_redact.cjs and …
…safe_outputs_config.test.cjs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
  • Loading branch information
Copilot and pelikhan authored Jun 2, 2026
commit fc95bbee2df24d98c4f938b977a6073179e1e122
2 changes: 1 addition & 1 deletion actions/setup/js/safe_outputs_config.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ describe("safe_outputs_config", () => {
"github-token": "${WRITE_PROJECT_PAT}",
"target-repo": "${GH_AW_INPUT_TARGET_REPO}",
},
}),
})
);

/** @type {import("./safe_outputs_config.cjs").LoadConfigResult} */
Expand Down
7 changes: 1 addition & 6 deletions actions/setup/js/safe_outputs_config_redact.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ function redactSensitiveConfig(value) {
return value.map(redactSensitiveConfig);
}
if (value && typeof value === "object") {
return Object.fromEntries(
Object.entries(/** @type {Record<string, unknown>} */ (value)).map(([key, nestedValue]) => [
key,
isSensitiveConfigKey(key) ? "***REDACTED***" : redactSensitiveConfig(nestedValue),
]),
);
return Object.fromEntries(Object.entries(/** @type {Record<string, unknown>} */ value).map(([key, nestedValue]) => [key, isSensitiveConfigKey(key) ? "***REDACTED***" : redactSensitiveConfig(nestedValue)]));
}
return value;
}
Expand Down
Loading