Documentation
¶
Overview ¶
Package trust decides whether Prism may run a repository's own build tools while indexing it (SEC-01). Indexing a trusted repository runs its Maven or Gradle build, its own typescript, rust-analyzer (build scripts, proc macros) and a pinned go toolchain; an untrusted one runs none.
The decision is per user, never per repository: the trust file lives in the user's config directory, so a hostile prism.yaml cannot grant itself trust. Default: trusted, with a one-time notice per repository.
Index ¶
Constants ¶
const ( Trusted = "trusted" Untrusted = "untrusted" TrustedDefault = "trusted-default" // never asked; the notice was shown )
State values stored per root.
Variables ¶
This section is empty.
Functions ¶
func NoticeOnce ¶
func Path ¶
func Path() string
Path is the trust file: $XDG_CONFIG_HOME/prism/trusted.json, else ~/.config/prism/trusted.json.
func SetOverride ¶
func SetOverride(state string)
SetOverride applies a command-line --trusted or --untrusted.