MCPcopy Create free account
hub / github.com/google/go-github / getSecretValue

Function getSecretValue

example/codespaces/newusersecretwithxcrypto/main.go:89–95  ·  view source on GitHub ↗
(secretName string)

Source from the content-addressed store, hash-verified

87}
88
89func getSecretValue(secretName string) (string, error) {
90 secretValue := os.Getenv(secretName)
91 if secretValue == "" {
92 return "", fmt.Errorf("secret value not found under env variable %q", secretName)
93 }
94 return secretValue, nil
95}
96
97// addUserSecret will add a secret to a GitHub user for use in GitHub Codespaces.
98//

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…