Skip to content

Commit 91ee2ad

Browse files
committed
dont set env
1 parent 162a8df commit 91ee2ad

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

general/token/oidctokenexchange.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@ import (
44
"fmt"
55
rtUtils "github.com/jfrog/jfrog-cli-core/v2/artifactory/utils"
66
"github.com/jfrog/jfrog-cli-core/v2/utils/config"
7-
"github.com/jfrog/jfrog-cli-core/v2/utils/coreutils"
87
"github.com/jfrog/jfrog-client-go/access/services"
98
"github.com/jfrog/jfrog-client-go/auth"
109
"github.com/jfrog/jfrog-client-go/utils/log"
11-
"os"
1210
"strings"
1311
)
1412

@@ -34,8 +32,7 @@ func (p OidcProviderType) String() string {
3432
func OidcProviderTypeFromString(providerType string) (OidcProviderType, error) {
3533
if providerType == "" {
3634
// If no provider type is provided, return 0 (GitHub) as default
37-
// And export env var for future use
38-
return 0, os.Setenv(coreutils.OidcProviderType, GitHub.String())
35+
return 0, nil
3936
}
4037
switch strings.ToLower(providerType) {
4138
case strings.ToLower(GitHub.String()):

0 commit comments

Comments
 (0)