# shouldPinTarget (/docs/api/functions/shouldPinTarget)



```ts
function shouldPinTarget(target, policy): boolean;
```

Defined in: [packages/core/src/passes/pin.ts:97](https://github.com/austenstone/actio/blob/2b01e694a0f76521d8c073f3c6a2e48917d2c9d9/packages/core/src/passes/pin.ts#L97)

Policy gate: should this target be pinned? Shared with the CLI so the build
layer resolves exactly the refs the pass will rewrite.

## Parameters [#parameters]

### target [#target]

[`PinTarget`](../interfaces/PinTarget.mdx)

### policy [#policy]

[`PinPolicy`](../interfaces/PinPolicy.mdx)

## Returns [#returns]

`boolean`


## Sitemap

Browse the full documentation: [Markdown sitemap](https://austenstone.github.io/actio/sitemap.md) · [XML sitemap](https://austenstone.github.io/actio/sitemap.xml)