# applyPins (/docs/api/functions/applyPins)



```ts
function applyPins(ctx, options): PinTarget[];
```

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

Rewrite pinnable `uses:` literals (step- and job-level) to their resolved
digest, attaching the original tag as a trailing comment. Targets without a
known resolution are collected and returned so the caller can resolve them and
re-run. Returns the deduped set of pinnable targets seen.

## Parameters [#parameters]

### ctx [#ctx]

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

### options [#options]

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

## Returns [#returns]

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


## Sitemap

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