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

Method GetUsedCacheKeys

pkg/workflow/action_resolver.go:37–41  ·  view source on GitHub ↗

GetUsedCacheKeys returns the set of cache keys (in "repo@version" format) that were successfully resolved from the cache or written to the cache during this run. These represent the action pins actually referenced by the compiled workflows.

()

Source from the content-addressed store, hash-verified

35// were successfully resolved from the cache or written to the cache during this run.
36// These represent the action pins actually referenced by the compiled workflows.
37func (r *ActionResolver) GetUsedCacheKeys() map[string]bool {
38 keys := make(map[string]bool, len(r.usedCacheKeys))
39 maps.Copy(keys, r.usedCacheKeys)
40 return keys
41}
42
43// MarkCacheKeyAsUsed explicitly marks a cache key as used during this compilation run.
44// This is useful for compiler-generated actions that aren't resolved through ResolveSHA.

Calls

no outgoing calls