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

Function cacheIntegrityLevel

pkg/workflow/cache_integrity.go:166–171  ·  view source on GitHub ↗

cacheIntegrityLevel returns the integrity level string for cache key generation. Returns defaultCacheIntegrityLevel when no guard policy is configured.

(github *GitHubToolConfig)

Source from the content-addressed store, hash-verified

164// cacheIntegrityLevel returns the integrity level string for cache key generation.
165// Returns defaultCacheIntegrityLevel when no guard policy is configured.
166func cacheIntegrityLevel(github *GitHubToolConfig) string {
167 if github == nil || github.MinIntegrity == "" {
168 return defaultCacheIntegrityLevel
169 }
170 return string(github.MinIntegrity)
171}
172
173// computeIntegrityCacheKey returns the effective cache key for a cache entry, incorporating
174// the integrity level and policy hash prefix. The key always starts with

Callers 3

generateCacheMemoryStepsFunction · 0.85
TestCacheIntegrityLevelFunction · 0.85
computeIntegrityCacheKeyFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCacheIntegrityLevelFunction · 0.68