From ccc7f7cc920e773471b3e60cf4caa43b6589ec3a Mon Sep 17 00:00:00 2001 From: Abdul Basit Date: Mon, 19 Aug 2024 20:58:21 +0500 Subject: [PATCH] appending domain in resource names --- pkg/analyzer/analyzers/gitlab/gitlab.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/analyzer/analyzers/gitlab/gitlab.go b/pkg/analyzer/analyzers/gitlab/gitlab.go index 950b5be3adf1..3eefb8a6df62 100644 --- a/pkg/analyzer/analyzers/gitlab/gitlab.go +++ b/pkg/analyzer/analyzers/gitlab/gitlab.go @@ -54,7 +54,7 @@ func secretInfoToAnalyzerResult(info *SecretInfo) *analyzers.AnalyzerResult { // Add token and it's permissions to bindings tokenResource := analyzers.Resource{ Name: info.AccessToken.Name, - FullyQualifiedName: info.AccessToken.Name, + FullyQualifiedName: fmt.Sprintf("github.com/token/%s", info.AccessToken.Name), Type: "access_token", Metadata: map[string]any{ "last_used_at": info.AccessToken.LastUsedAt, @@ -77,7 +77,7 @@ func secretInfoToAnalyzerResult(info *SecretInfo) *analyzers.AnalyzerResult { for _, project := range info.Projects { projectResource := analyzers.Resource{ Name: project.NameWithNamespace, - FullyQualifiedName: project.NameWithNamespace, + FullyQualifiedName: fmt.Sprintf("github.com/project/%s", project.NameWithNamespace), Type: "project", }