We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f5507c8 + 3385a9a commit d928120Copy full SHA for d928120
1 file changed
internal/resolve/resolve_test.go
@@ -63,6 +63,8 @@ func TestTokenForDomain(t *testing.T) {
63
}
64
65
// FORGE_TOKEN is a fallback for any domain
66
+ t.Setenv("GITHUB_TOKEN", "")
67
+ t.Setenv("GH_TOKEN", "")
68
t.Setenv("FORGE_TOKEN", "forge-tok")
69
got = TokenForDomain("github.com")
70
if got != "forge-tok" {
@@ -105,6 +107,8 @@ func TestTokenForDomainEnvSpecificOverridesFallback(t *testing.T) {
105
107
106
108
109
func TestTokenForDomainEnvFallbackToForgeToken(t *testing.T) {
110
111
112
t.Setenv("FORGE_TOKEN", "forge-fallback")
113
114
got := TokenForDomainEnv("github.com")
0 commit comments