Skip to content

Commit 517b413

Browse files
committed
clear GITHUB_TOKEN in one TestGithubPluginAuth case
1 parent 166dc27 commit 517b413

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/plugin/github_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ func TestGithubPluginAuth(t *testing.T) {
117117
expectedURL := "https://raw.githubusercontent.com/jetpack-io/devbox-plugins/master/test"
118118

119119
t.Run("generate request for public Github repository", func(t *testing.T) {
120+
t.Setenv("GITHUB_TOKEN", "")
120121
url, err := githubPlugin.url("test")
121122
assert.NoError(t, err)
122123
actual, err := githubPlugin.request(url)

0 commit comments

Comments
 (0)