Skip to content

Commit dbcffb4

Browse files
authored
Recompile plugin with tailpipe-plugin-sdk v0.9.0 (#28)
1 parent a8dee82 commit dbcffb4

3 files changed

Lines changed: 9 additions & 16 deletions

File tree

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ toolchain go1.24.1
66

77
require (
88
github.com/rs/xid v1.6.0
9-
github.com/turbot/tailpipe-plugin-sdk v0.7.1
9+
github.com/turbot/tailpipe-plugin-sdk v0.9.0
1010
)
1111

1212
require (
@@ -111,7 +111,7 @@ require (
111111
github.com/jmespath/go-jmespath v0.4.0 // indirect
112112
github.com/jtolds/gls v4.20.0+incompatible // indirect
113113
github.com/karrick/gows v0.3.0 // indirect
114-
github.com/klauspost/compress v1.17.11 // indirect
114+
github.com/klauspost/compress v1.18.0 // indirect
115115
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
116116
github.com/leodido/go-urn v1.4.0 // indirect
117117
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
@@ -160,7 +160,7 @@ require (
160160
github.com/tklauser/numcpus v0.3.0 // indirect
161161
github.com/tkrajina/go-reflector v0.5.8 // indirect
162162
github.com/turbot/go-kit v1.3.0
163-
github.com/turbot/pipe-fittings/v2 v2.4.1 // indirect
163+
github.com/turbot/pipe-fittings/v2 v2.5.2 // indirect
164164
github.com/turbot/pipes-sdk-go v0.12.0 // indirect
165165
github.com/turbot/terraform-components v0.0.0-20231213122222-1f3526cab7a7 // indirect
166166
github.com/ulikunitz/xz v0.5.10 // indirect

go.sum

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o
554554
github.com/klauspost/asmfmt v1.3.2 h1:4Ri7ox3EwapiOjCki+hw14RyKk201CN4rzyCJRFLpK4=
555555
github.com/klauspost/asmfmt v1.3.2/go.mod h1:AG8TuvYojzulgDAMCnYn50l/5QV3Bs/tp6j0HLHbNSE=
556556
github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM=
557-
github.com/klauspost/compress v1.17.11 h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc=
558-
github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90U12bZKk7uwG0=
557+
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
558+
github.com/klauspost/compress v1.18.0/go.mod h1:2Pp+KzxcywXVXMr50+X0Q/Lsb43OQHYWRCY2AiWywWQ=
559559
github.com/klauspost/cpuid/v2 v2.2.9 h1:66ze0taIn2H33fBvCkXuv9BmCwDfafmiIVpKV9kKGuY=
560560
github.com/klauspost/cpuid/v2 v2.2.9/go.mod h1:rqkxqrZ1EhYM9G+hXH7YdowN5R5RGN6NK4QwQ3WMXF8=
561561
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
@@ -703,12 +703,12 @@ github.com/tkrajina/go-reflector v0.5.8 h1:yPADHrwmUbMq4RGEyaOUpz2H90sRsETNVpjzo
703703
github.com/tkrajina/go-reflector v0.5.8/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4=
704704
github.com/turbot/go-kit v1.3.0 h1:6cIYPAO5hO9fG7Zd5UBC4Ch3+C6AiiyYS0UQnrUlTV0=
705705
github.com/turbot/go-kit v1.3.0/go.mod h1:piKJMYCF8EYmKf+D2B78Csy7kOHGmnQVOWingtLKWWQ=
706-
github.com/turbot/pipe-fittings/v2 v2.4.1 h1:HncLdttMSjEyx7E8xTQ9xBfbz9JLoycp3YSaAiG9xzo=
707-
github.com/turbot/pipe-fittings/v2 v2.4.1/go.mod h1:szte433cBDCaZcGe5zMVGG7uTl9HMaEYaQmuvzZRYIQ=
706+
github.com/turbot/pipe-fittings/v2 v2.5.2 h1:qrQQEnD6dmMSQFUw8cKw6/Rb1sWolMru0+xXY/BcPU4=
707+
github.com/turbot/pipe-fittings/v2 v2.5.2/go.mod h1:szte433cBDCaZcGe5zMVGG7uTl9HMaEYaQmuvzZRYIQ=
708708
github.com/turbot/pipes-sdk-go v0.12.0 h1:esbbR7bALa5L8n/hqroMPaQSSo3gNM/4X0iTmHa3D6U=
709709
github.com/turbot/pipes-sdk-go v0.12.0/go.mod h1:Mb+KhvqqEdRbz/6TSZc2QWDrMa5BN3E4Xw+gPt2TRkc=
710-
github.com/turbot/tailpipe-plugin-sdk v0.7.1 h1:8VIE71HpYO0pJucPTI1DD6SZw0AnkbmFqw1VoAiyp9g=
711-
github.com/turbot/tailpipe-plugin-sdk v0.7.1/go.mod h1:is7Hh1u0yZS2nJ2HXwV9BpDMpuDycIt/gJtE10ufMss=
710+
github.com/turbot/tailpipe-plugin-sdk v0.9.0 h1:4WTxBdSimiQENVZ0DtzgDOaBLk9k3mHb6YHZXRnS+7M=
711+
github.com/turbot/tailpipe-plugin-sdk v0.9.0/go.mod h1:ch/GVDaLoyau6LCUPbx/aYprNi7+DKhmwPDM0M1QJbM=
712712
github.com/turbot/terraform-components v0.0.0-20231213122222-1f3526cab7a7 h1:qDMxFVd8Zo0rIhnEBdCIbR+T6WgjwkxpFZMN8zZmmjg=
713713
github.com/turbot/terraform-components v0.0.0-20231213122222-1f3526cab7a7/go.mod h1:5hzpfalEjfcJWp9yq75/EZoEu2Mzm34eJAPm3HOW2tw=
714714
github.com/ulikunitz/xz v0.5.10 h1:t92gobL9l3HE202wg3rlk19F6X+JOxl9BBrCCMYEYd8=

tables/audit_log/audit_log_table.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ func (t *AuditLogTable) EnrichRow(row *AuditLog, sourceEnrichmentFields schema.S
4949
row.TpUsernames = append(row.TpUsernames, *row.User)
5050
}
5151

52-
if row.Org != nil {
53-
row.TpIndex = *row.Org
54-
} else {
55-
// Set the default tp_index value to "default" for events that do not contain the "org" property, such as packages.package_version_deleted and packages.package_version_published.
56-
row.TpIndex = "default"
57-
}
58-
5952
row.TpDate = row.Timestamp.Truncate(24 * time.Hour)
6053
return row, nil
6154
}

0 commit comments

Comments
 (0)