Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / resolveTrustPolicy
Function: resolveTrustPolicy()
ts
function resolveTrustPolicy(source, trustLevel): ResolvedSkillTrustPolicy;Defined in: packages/security/src/supply-chain/policy.ts:105
Resolve the trust policy for a (source, trust-level) tuple. The resolver enforces the project-wide rule that npm/git installs always run with --ignore-scripts and that signature verification is mandatory for untrusted.
Parameters
| Parameter | Type |
|---|---|
source | SkillSource |
trustLevel | | SkillTrustLevel | undefined |