Skip to content

Commit 0929022

Browse files
committed
Replace deprecated method
* see googleapis/google-api-go-client#3356
1 parent 1efec4e commit 0929022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/resources/stemcell-version-bump/resource/gcs_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type GCSClient struct {
1414
}
1515

1616
func NewGCSClient(jsonKey string) (GCSClient, error) {
17-
client, err := storage.NewClient(context.TODO(), option.WithCredentialsJSON([]byte(jsonKey)))
17+
client, err := storage.NewClient(context.TODO(), option.WithAuthCredentialsJSON(option.ServiceAccount, []byte(jsonKey)))
1818
if err != nil {
1919
return GCSClient{}, fmt.Errorf("failed to create GCS storage client: %w", err)
2020
}

0 commit comments

Comments
 (0)