Skip to content

Commit

Permalink
✨ Add labels to the reporter assets. (#1383)
Browse files Browse the repository at this point in the history
Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev authored Jul 24, 2024
1 parent 585fa83 commit 7903322
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions cli/reporter/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@ func (r *Report) ToCnqueryReport() *cr.Report {

for id, asset := range r.Assets {
report.Assets[id] = &cr.Asset{
Mrn: asset.Mrn,
Name: asset.Name,
TraceId: asset.TraceId,
Mrn: asset.GetMrn(),
Name: asset.GetName(),
TraceId: asset.GetTraceId(),
Labels: asset.GetLabels(),
}
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ require (
github.com/spf13/pflag v1.0.6-0.20201009195203-85dd5c8bc61c
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
go.mondoo.com/cnquery/v11 v11.14.0
go.mondoo.com/cnquery/v11 v11.14.1-0.20240724175750-e6e001675bad
go.mondoo.com/mondoo-go v0.0.0-20240716062427-ec95d879cbe7
go.mondoo.com/ranger-rpc v0.6.2
go.opentelemetry.io/otel v1.28.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -948,8 +948,8 @@ github.com/zclconf/go-cty v1.10.0/go.mod h1:vVKLxnk3puL4qRAv72AO+W99LUD4da90g3uU
go.etcd.io/etcd/api/v3 v3.5.1/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs=
go.etcd.io/etcd/client/pkg/v3 v3.5.1/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g=
go.etcd.io/etcd/client/v2 v2.305.1/go.mod h1:pMEacxZW7o8pg4CrFE7pquyCJJzZvkvdD2RibOCCCGs=
go.mondoo.com/cnquery/v11 v11.14.0 h1:Qf5BxHjM4E3rVxrj44W5WNpTfI4nBlGMvWfYFNhRxO8=
go.mondoo.com/cnquery/v11 v11.14.0/go.mod h1:ynoTBPUxdqEp5DKJ8hrRNH7+e47z09eZTNWrd5NQAMY=
go.mondoo.com/cnquery/v11 v11.14.1-0.20240724175750-e6e001675bad h1:KjF+SdwM+7OkQ/tLO58SCyc2J3KJT/tIG2VT/Frl5CU=
go.mondoo.com/cnquery/v11 v11.14.1-0.20240724175750-e6e001675bad/go.mod h1:ynoTBPUxdqEp5DKJ8hrRNH7+e47z09eZTNWrd5NQAMY=
go.mondoo.com/mondoo-go v0.0.0-20240716062427-ec95d879cbe7 h1:nsTJvZNM+4VNgzsua3IZ2FeDqiQXT7MvaN5ifoy08Uw=
go.mondoo.com/mondoo-go v0.0.0-20240716062427-ec95d879cbe7/go.mod h1:4032UBD0ph9LyhXq5OQmmxkJv37HdAGi34YLWbhnMDA=
go.mondoo.com/ranger-rpc v0.6.2 h1:HgPprXOblvF3dOWLTz5si+uKnUyJhuOGH9yr96RDDyc=
Expand Down

0 comments on commit 7903322

Please sign in to comment.