Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.25.5
1.26.1
14 changes: 14 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,20 @@ linters:
disabled: true
- name: unused-receiver
disabled: true
- name: package-directory-mismatch
disabled: true
- name: enforce-switch-style
disabled: true
- name: use-waitgroup-go
disabled: true
- name: use-slices-sort
disabled: true
- name: identical-switch-branches
disabled: true
- name: package-naming
disabled: true
- name: epoch-naming
disabled: true
staticcheck:
checks:
- "all"
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion bin/go
2 changes: 1 addition & 1 deletion bin/gofmt
2 changes: 1 addition & 1 deletion bin/golangci-lint
2 changes: 1 addition & 1 deletion docs/version.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// doc-branch can be: master, 8.1, 8.2, etc.
:doc-branch: master
:go-version: 1.25.4
:go-version: 1.26.1
:python: 3.7
:docker: 1.12
:docker-compose: 1.11
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/elastic/cloudbeat

go 1.25.5
go 1.26.1

require (
cloud.google.com/go/asset v1.22.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type AssetsEnricher interface {
}

func initEnrichers(provider azurelib.ProviderAPI) []AssetsEnricher {
var enrichers []AssetsEnricher
enrichers := make([]AssetsEnricher, 0, 7)

enrichers = append(enrichers, storageAccountEnricher{provider: provider})
enrichers = append(enrichers, vmNetworkSecurityGroupEnricher{})
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/providers/awslib/rds/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (p Provider) getDBInstanceSubnets(ctx context.Context, region string, dbIns
if err != nil {
p.log.Errorf("Could not get route table for subnet %s of DB %s. Error: %v", *subnet.SubnetIdentifier, *dbInstance.DBInstanceIdentifier, err)
} else {
var routes []Route
routes := make([]Route, 0, len(routeTableForSubnet.Routes))
for _, route := range routeTableForSubnet.Routes {
routes = append(routes, Route{DestinationCidrBlock: route.DestinationCidrBlock, GatewayId: route.GatewayId})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func findDnsPolicyByNetwork(dnsPolicies []*dnsPolicyFields, networkIdentifier st
}

func decodeDnsPolicies(dnsPolicyAssets []*assetpb.Asset) []*dnsPolicyFields {
dnsPolicies := make([]*dnsPolicyFields, 0)
dnsPolicies := make([]*dnsPolicyFields, 0, len(dnsPolicyAssets))
for _, dnsPolicyAsset := range dnsPolicyAssets {
fields := new(dnsPolicyFields)
dnsPolicyData := dnsPolicyAsset.GetResource().GetData().GetFields()
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_assets_md/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/elastic/cloudbeat/scripts/update_assets_md

go 1.24.0
go 1.26.1

require (
github.com/ettle/strcase v0.2.0
Expand Down
Loading