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

Function getValidEcosystemIdentifiers

pkg/workflow/network_firewall_validation.go:156–167  ·  view source on GitHub ↗

getValidEcosystemIdentifiers returns a sorted list of all valid ecosystem identifiers, including both the base identifiers from ecosystemDomains and compound identifiers.

()

Source from the content-addressed store, hash-verified

154// getValidEcosystemIdentifiers returns a sorted list of all valid ecosystem identifiers,
155// including both the base identifiers from ecosystemDomains and compound identifiers.
156func getValidEcosystemIdentifiers() []string {
157 ecosystemDomains := getLoadedEcosystemDomains()
158 ids := make([]string, 0, safeAllocationCapacity(len(ecosystemDomains), len(compoundEcosystems)))
159 for id := range ecosystemDomains {
160 ids = append(ids, id)
161 }
162 for id := range compoundEcosystems {
163 ids = append(ids, id)
164 }
165 sort.Strings(ids)
166 return ids
167}
168
169// domainPattern validates domain patterns including wildcards
170// Valid patterns:

Calls 2

safeAllocationCapacityFunction · 0.85