Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / assertPolicyAllows

Function: assertPolicyAllows()

ts
function assertPolicyAllows(packageName, policy): void;

Defined in: packages/security/src/supply-chain/policy.ts:90

Throw SkillInstallDeniedError when the policy resolves to 'deny'. Returns silently otherwise so callers can chain it inside a wider install pipeline.

Parameters

ParameterType
packageNamestring
policySupplyChainPolicy

Returns

void

Stable