Skip to content

Commit

Permalink
appending domain in resource names
Browse files Browse the repository at this point in the history
  • Loading branch information
abmussani committed Aug 19, 2024
1 parent 0aacf14 commit ccc7f7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/analyzer/analyzers/gitlab/gitlab.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
}

Expand Down

0 comments on commit ccc7f7c

Please sign in to comment.