From 11fd894eaed54788cc33f2f979f6e30e300500e0 Mon Sep 17 00:00:00 2001 From: counter Date: Sat, 30 Sep 2023 13:04:23 -0700 Subject: [PATCH] Adding project ID to metadata --- pkg/detectors/gcp/gcp.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/detectors/gcp/gcp.go b/pkg/detectors/gcp/gcp.go index 621df90e189c..69c82e0571b3 100644 --- a/pkg/detectors/gcp/gcp.go +++ b/pkg/detectors/gcp/gcp.go @@ -70,7 +70,6 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result } creds.AuthProviderX509CertURL = trimCarrots(creds.AuthProviderX509CertURL) creds.AuthURI = trimCarrots(creds.AuthURI) - creds.project_id = trimCarrots(creds.project_id) creds.ClientX509CertURL = trimCarrots(creds.ClientX509CertURL) creds.TokenURI = trimCarrots(creds.TokenURI) @@ -91,7 +90,7 @@ func (s Scanner) FromData(ctx context.Context, verify bool, data []byte) (result // Set the RotationGuideURL in the ExtraData s.ExtraData = map[string]string{ "Rotation Guide": "https://howtorotate.com/docs/tutorials/gcp/", - "Project": creds.project_id, + "Project": creds.ProjectID, } if verify {