MCPcopy Create free account
hub / github.com/github/gh-aw / getSafeOutputConfig

Function getSafeOutputConfig

actions/setup/js/safe_output_validator.cjs:33–36  ·  view source on GitHub ↗

* Get configuration for a specific safe output type * @param {string} outputType - The type of safe output (e.g., "add_labels", "update_issue") * @returns {{max?: number, target?: string, allowed?: string[]}} The configuration for this output type

(outputType)

Source from the content-addressed store, hash-verified

31 * @returns {{max?: number, target?: string, allowed?: string[]}} The configuration for this output type
32 */
33function getSafeOutputConfig(outputType) {
34 const config = loadSafeOutputsConfig();
35 return config[outputType] || {};
36}
37
38/**
39 * Validate and sanitize a title string

Callers 1

processSafeOutputFunction · 0.85

Calls 1

loadSafeOutputsConfigFunction · 0.70

Tested by

no test coverage detected