{ "name": "scorecard", "runtime": "component", "exports": { "run": { "description": "Execute arbitrary literal CLI arguments.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "arguments": { "type": "array", "items": { "type": "string", "minLength": 1 }, "minItems": 1, "description": "Literal native CLI argument tokens, passed without shell expansion." } }, "required": [ "runDir", "arguments" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "version": { "description": "Print the CLI version.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "scan": { "description": "Evaluate an upstream repository against OpenSSF Scorecard checks.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "format": { "type": "string", "minLength": 1, "default": "json", "enum": [ "json", "sarif", "default" ], "description": "Format supplied to the scorecard scan operation. Default: \"json\". Allowed values: json, sarif, default." }, "checks": { "type": "string", "minLength": 1, "description": "Checks supplied to the scorecard scan operation." }, "showDetails": { "type": "boolean", "description": "Show Details supplied to the scorecard scan operation." }, "repo": { "type": "string", "minLength": 1, "description": "Repo supplied to the scorecard scan operation." } }, "required": [ "runDir", "repo" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "scan_local": { "description": "Run supported checks against a local repository.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "format": { "type": "string", "minLength": 1, "default": "json", "enum": [ "json", "sarif", "default" ], "description": "Format supplied to the scorecard scan_local operation. Default: \"json\". Allowed values: json, sarif, default." }, "checks": { "type": "string", "minLength": 1, "description": "Checks supplied to the scorecard scan_local operation." }, "showDetails": { "type": "boolean", "description": "Show Details supplied to the scorecard scan_local operation." }, "local": { "type": "string", "minLength": 1, "default": ".", "description": "Local supplied to the scorecard scan_local operation. Default: \".\"." } }, "required": [ "runDir" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } }, "gate": { "description": "Fail CI when any reported check is unscored or below the requested minimum.", "input": { "type": "object", "properties": { "project": { "type": "string", "default": ".", "minLength": 1, "description": "Working directory containing the source checkout; defaults to the current directory. Default: \".\"." }, "runDir": { "type": "string", "minLength": 1, "description": "Fresh directory for this invocation’s execution report and task logs; must not already exist." }, "executable": { "type": "string", "minLength": 1, "description": "Native CLI executable name or absolute path; defaults to this operation’s tool." }, "timeoutMs": { "type": "integer", "minimum": 1, "default": 900000, "description": "Maximum task duration in milliseconds; defaults to 900000. Default: 900000." }, "artifacts": { "type": "array", "items": { "type": "string" }, "description": "Output artifacts to collect as NAME=PATH entries; names must be unique." }, "report": { "type": "string", "minLength": 1, "description": "Scorecard JSON report path." }, "minimum": { "type": "integer", "minimum": 1, "default": 7, "description": "Minimum score for every reported check (1–10). Default: 7." } }, "required": [ "runDir", "report" ], "additionalProperties": false }, "output": { "type": "object", "required": [ "outcome", "runDir", "reportPath", "stdoutPath", "stderrPath" ], "properties": { "outcome": { "type": "string" }, "runDir": { "type": "string" }, "reportPath": { "type": "string" }, "stdoutPath": { "type": "string" }, "stderrPath": { "type": "string" } }, "additionalProperties": false } } } }