Skip to content

Commit

Permalink
add nosec annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulBernier committed Jan 15, 2025
1 parent 5d9a627 commit 2701e19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/googlecloudpubsubreceiver/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func TestConfigCredentialsValidation(t *testing.T) {
c := factory.CreateDefaultConfig().(*Config)
c.Subscription = "projects/my-project/subscriptions/my-subscription"

dummyCredentialsJSON := `{
dummyCredentialsJSON := `{
"type": "service_account",
"project_id": "my-project",
"private_key_id": "d41d8cd98f00b204e9800998ecf8427e",
Expand All @@ -148,7 +148,7 @@ func TestConfigCredentialsValidation(t *testing.T) {
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/my-project.iam.gserviceaccount.com",
"universe_domain": "googleapis.com"
}`
}` // #nosec G101 -- this is not real/functional credentials

c.CredentialsFilePath = "/home/service-principal-01ba5c7dde9b.json"
c.CredentialsJSON = ""
Expand Down

0 comments on commit 2701e19

Please sign in to comment.