Skip to content

Commit

Permalink
🧹 update berglas to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Dec 30, 2024
1 parent 2b40eec commit dc99e69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ require (
github.com/99designs/keyring v1.2.2
github.com/BurntSushi/toml v1.4.0
github.com/CycloneDX/cyclonedx-go v0.9.1
github.com/GoogleCloudPlatform/berglas v1.0.3
github.com/Masterminds/semver v1.5.0
github.com/ProtonMail/go-crypto v1.1.3
github.com/StackExchange/wmi v1.2.1
Expand Down Expand Up @@ -288,6 +287,7 @@ require (
)

require (
github.com/GoogleCloudPlatform/berglas/v2 v2.0.6
github.com/moby/buildkit v0.18.1
github.com/moby/sys/mount v0.3.4
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ github.com/ChrisTrenkamp/goxpath v0.0.0-20210404020558-97928f7e12b6/go.mod h1:nu
github.com/CycloneDX/cyclonedx-go v0.9.1 h1:yffaWOZsv77oTJa/SdVZYdgAgFioCeycBUKkqS2qzQM=
github.com/CycloneDX/cyclonedx-go v0.9.1/go.mod h1:NE/EWvzELOFlG6+ljX/QeMlVt9VKcTwu8u0ccsACEsw=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/GoogleCloudPlatform/berglas v1.0.3 h1:NjJYDz13vWct7+joxkBkIZhD6Cmwf5XP5t0jGTvHyJk=
github.com/GoogleCloudPlatform/berglas v1.0.3/go.mod h1:JBsGyi6Z5RwyHXMdEebok6MChukLE+dWXzPor2aeMtw=
github.com/GoogleCloudPlatform/berglas/v2 v2.0.6 h1:c6WHIgUQIQA0aApsBL2y0d41EH8JHRtGALzXwh28ilw=
github.com/GoogleCloudPlatform/berglas/v2 v2.0.6/go.mod h1:GjFzxOKcz57OGKVAIsSWxTlNLXIPXn2AItkAMVWchx0=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0 h1:3c8yed4lgqTt+oTQ+JNMDo+F4xprBf+O/il4ZC0nRLw=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.25.0/go.mod h1:obipzmGjfSjam60XLwGfqUkJsfiheAl+TUjG+4yzyPM=
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.49.0 h1:o90wcURuxekmXrtxmYWTyNla0+ZEHhud6DI1ZTxd1vI=
Expand Down
2 changes: 1 addition & 1 deletion providers-sdk/v1/vault/gcpberglas/berglas.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"strings"

berglas "github.com/GoogleCloudPlatform/berglas/pkg/berglas"
berglas "github.com/GoogleCloudPlatform/berglas/v2/pkg/berglas"
"go.mondoo.com/cnquery/v11/providers-sdk/v1/vault"
"go.mondoo.com/cnquery/v11/utils/multierr"
)
Expand Down
5 changes: 2 additions & 3 deletions providers-sdk/v1/vault/gcpberglas/berglas_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

//go:build debugtest
// +build debugtest

package gcpberglas

import (
Expand All @@ -17,6 +14,8 @@ import (
)

func TestGcpBerglas(t *testing.T) {
t.Skip("Skip test as it requires actual GCP project and bucket")

// replace with actual values to test this
projectID := "project-id-here"
bucketName := " bucket-name"
Expand Down

0 comments on commit dc99e69

Please sign in to comment.