Skip to content

Commit

Permalink
feat: add gitlab pipeline id (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
gotbadger authored Dec 12, 2023
1 parent 68c7f71 commit 44d602e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/report/output/saas/saas.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,6 @@ func getMeta(
BearerRulesVersion: config.BearerRulesVersion,
BearerVersion: build.Version,
FoundLanguages: reportData.FoundLanguages,
GitlabPipelineId: os.Getenv("CI_PIPELINE_ID"),
}, nil
}
1 change: 1 addition & 0 deletions internal/report/output/saas/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type Meta struct {
BearerRulesVersion string `json:"bearer_rules_version,omitempty" yaml:"bearer_rules_version,omitempty"`
BearerVersion string `json:"bearer_version,omitempty" yaml:"bearer_version,omitempty"`
FoundLanguages map[string]int32 `json:"found_languages" yaml:"found_languages"`
GitlabPipelineId string `json:"gitlab_pipeline_id,omitempty" yaml:"gitlab_pipeline_id,omitempty"`
}

type BearerReport struct {
Expand Down

0 comments on commit 44d602e

Please sign in to comment.