MCPcopy Create free account
hub / github.com/github/gh-aw / getCachedActionPinFromResolver

Function getCachedActionPinFromResolver

pkg/workflow/action_pins.go:148–154  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

146// preferring dynamic resolution via resolver over the embedded pins.
147// For use within pkg/workflow when only a resolver is available (no WorkflowData).
148func 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

Calls 1

ResolveLatestActionPinFunction · 0.92

Tested by

no test coverage detected