Skip to main content

Module trust

Module trust 

Source
Expand description

Who trusted which hook’s bytes. A record lives in speccoder’s state for the project, never in the checkout; it holds until the definition or a file the hook runs changes. The one before it is kept, so trusting a changed hook shows what changed.

Structs§

Entry
A hook’s current record and the one before it.
Trust
One person’s trust in one hook’s bytes.

Functions§

apply_flags
Trusts the hooks flags name, each only for its current digest (via = ci): the non-interactive path.
last_trusted
The record a changed hook was trusted under, for “what changed”.
parse_flag
--trust-hook name=sha256:…, split.
read
Every record in dir.
record
Records that by trusted hook as it is now, through via.
state
Whether name with digest may run.