Skip to content

Commit

Permalink
Adding project ID to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
counter authored and counter committed Sep 30, 2023
1 parent 281cf0b commit 11fd894
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/detectors/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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 {
Expand Down

0 comments on commit 11fd894

Please sign in to comment.