Skip to content

Commit

Permalink
use jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
yihanzhen committed Nov 5, 2024
1 parent e1c6e9c commit 9cf1510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion credhelper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ It looks for credentials in the following places, preferring the first location
*/
func tokenFromEnv() (string, error) {
creds, err := cloudcreds.DetectDefault(&cloudcreds.DetectOptions{
Scopes: config.GCRScopes,
Scopes: config.GCRScopes,
UseSelfSignedJWT: true,
})
if err != nil {
return "", helperErr("failed to detect default credentials", err)
Expand Down

0 comments on commit 9cf1510

Please sign in to comment.