Skip to content

Latest commit

 

History

History
85 lines (64 loc) · 4.99 KB

COMPONENT.md

File metadata and controls

85 lines (64 loc) · 4.99 KB

scorecard component functions

Requires FluentCI v0.17.3 or newer. The compiler derives native WIT signatures and embedded help from these typed PureScript functions. Optional arguments may be omitted.

run

Execute arbitrary literal CLI arguments.

Argument Type Required Description
project string no Working directory containing the source checkout; defaults to the current directory. Default: ".".
run-dir string yes Fresh directory for this invocation’s execution report and task logs; must not already exist.
executable string no Native CLI executable name or absolute path; defaults to this operation’s tool.
timeout-ms integer no Maximum task duration in milliseconds; defaults to 900000. Default: 900000.
artifacts array no Output artifacts to collect as NAME=PATH entries; names must be unique.
arguments array yes Literal native CLI argument tokens, passed without shell expansion.

Returns Contract.ExecutionResult.

version

Print the CLI version.

Argument Type Required Description
project string no Working directory containing the source checkout; defaults to the current directory. Default: ".".
run-dir string yes Fresh directory for this invocation’s execution report and task logs; must not already exist.
executable string no Native CLI executable name or absolute path; defaults to this operation’s tool.
timeout-ms integer no Maximum task duration in milliseconds; defaults to 900000. Default: 900000.
artifacts array no Output artifacts to collect as NAME=PATH entries; names must be unique.

Returns Contract.ExecutionResult.

scan

Evaluate an upstream repository against OpenSSF Scorecard checks.

Argument Type Required Description
project string no Working directory containing the source checkout; defaults to the current directory. Default: ".".
run-dir string yes Fresh directory for this invocation’s execution report and task logs; must not already exist.
executable string no Native CLI executable name or absolute path; defaults to this operation’s tool.
timeout-ms integer no Maximum task duration in milliseconds; defaults to 900000. Default: 900000.
artifacts array no Output artifacts to collect as NAME=PATH entries; names must be unique.
format string no Format supplied to the scorecard scan operation. Default: "json". Allowed values: json, sarif, default.
checks string no Checks supplied to the scorecard scan operation.
show-details boolean no Show Details supplied to the scorecard scan operation.
repo string yes Repo supplied to the scorecard scan operation.

Returns Contract.ExecutionResult.

scan-local

Run supported checks against a local repository.

Argument Type Required Description
project string no Working directory containing the source checkout; defaults to the current directory. Default: ".".
run-dir string yes Fresh directory for this invocation’s execution report and task logs; must not already exist.
executable string no Native CLI executable name or absolute path; defaults to this operation’s tool.
timeout-ms integer no Maximum task duration in milliseconds; defaults to 900000. Default: 900000.
artifacts array no Output artifacts to collect as NAME=PATH entries; names must be unique.
format string no Format supplied to the scorecard scan_local operation. Default: "json". Allowed values: json, sarif, default.
checks string no Checks supplied to the scorecard scan_local operation.
show-details boolean no Show Details supplied to the scorecard scan_local operation.
local string no Local supplied to the scorecard scan_local operation. Default: ".".

Returns Contract.ExecutionResult.

gate

Fail CI when any reported check is unscored or below the requested minimum.

Argument Type Required Description
project string no Working directory containing the source checkout; defaults to the current directory. Default: ".".
run-dir string yes Fresh directory for this invocation’s execution report and task logs; must not already exist.
executable string no Native CLI executable name or absolute path; defaults to this operation’s tool.
timeout-ms integer no Maximum task duration in milliseconds; defaults to 900000. Default: 900000.
artifacts array no Output artifacts to collect as NAME=PATH entries; names must be unique.
report string yes Scorecard JSON report path.
minimum integer no Minimum score for every reported check (1–10). Default: 7.

Returns Contract.ExecutionResult.