(secretName string)
| 87 | } |
| 88 | |
| 89 | func 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 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…