getCachedActionPinFromResolver returns the pinned action reference for repo, preferring dynamic resolution via resolver over the embedded pins. For use within pkg/workflow when only a resolver is available (no WorkflowData).
(repo string, resolver SHAResolver)
| 146 | // preferring dynamic resolution via resolver over the embedded pins. |
| 147 | // For use within pkg/workflow when only a resolver is available (no WorkflowData). |
| 148 | func getCachedActionPinFromResolver(repo string, resolver SHAResolver) string { |
| 149 | ctx := &actionpins.PinContext{} |
| 150 | if resolver != nil { |
| 151 | ctx.Resolver = resolver |
| 152 | } |
| 153 | return actionpins.ResolveLatestActionPin(repo, ctx) |
| 154 | } |
| 155 | |
| 156 | // -------------------------------------------------------------------------- |
| 157 | // Package-private API — delegates to pkg/actionpins with a PinContext from WorkflowData |
no test coverage detected