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

Function FormatCacheKey

pkg/actionpins/actionpins.go:242–244  ·  view source on GitHub ↗

FormatCacheKey generates a cache key for action resolution. Example: "actions/checkout@v4"

(repo, version string)

Source from the content-addressed store, hash-verified

240// FormatCacheKey generates a cache key for action resolution.
241// Example: "actions/checkout@v4"
242func FormatCacheKey(repo, version string) string {
243 return repo + "@" + version
244}
245
246// ExtractRepo extracts the action repository from a uses string.
247// Examples: "actions/checkout@v5" -> "actions/checkout"

Calls

no outgoing calls