Skip to content

Commit 4be7502

Browse files
authored
Merge pull request #9 from ConductorOne/fix/listing-users
fix: Continue syncing if no users are found
2 parents 1cf8754 + bb89532 commit 4be7502

File tree

2,501 files changed

+3580914
-1931528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,501 files changed

+3580914
-1931528
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#### Description
2+
3+
- [ ] Bug fix
4+
- [ ] New feature
5+
6+
7+
8+
9+
#### Useful links:
10+
11+
- [Baton SDK coding guidelines](https://github.com/ConductorOne/baton-sdk/wiki/Coding-Guidelines)
12+
- [New contributor guide](https://github.com/ConductorOne/baton/blob/main/CONTRIBUTING.md)

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
allow:
8+
- dependency-name: "github.com/conductorone/baton-sdk"

.github/workflows/ci.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ jobs:
55
runs-on: ubuntu-latest
66
steps:
77
- name: Install Go
8-
uses: actions/setup-go@v4
8+
uses: actions/setup-go@v5
99
with:
10-
go-version: 1.20.x
10+
go-version: 1.22.x
1111
- name: Checkout code
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
- name: Run linters
14-
uses: golangci/golangci-lint-action@v3
14+
uses: golangci/golangci-lint-action@v5
1515
with:
1616
version: latest
1717
args: --timeout=3m
1818
go-test:
1919
strategy:
2020
matrix:
21-
go-version: [1.20.x]
21+
go-version: [1.22.x]
2222
platform: [ubuntu-latest]
2323
runs-on: ${{ matrix.platform }}
2424
steps:
2525
- name: Install Go
2626
if: success()
27-
uses: actions/setup-go@v4
27+
uses: actions/setup-go@v5
2828
with:
2929
go-version: ${{ matrix.go-version }}
3030
- name: Checkout code
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
- name: go tests
3333
run: go test -v -covermode=count -json ./... > test.json
3434
- name: annotate go tests

.github/workflows/main.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Install Go
11-
uses: actions/setup-go@v4
11+
uses: actions/setup-go@v5
1212
with:
13-
go-version: 1.20.x
13+
go-version: 1.22.x
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
- name: Run linters
17-
uses: golangci/golangci-lint-action@v3
17+
uses: golangci/golangci-lint-action@v5
1818
with:
1919
version: latest
2020
args: --timeout=3m
2121
go-test:
2222
strategy:
2323
matrix:
24-
go-version: [ 1.20.x ]
24+
go-version: [ 1.22.x ]
2525
platform: [ ubuntu-latest ]
2626
runs-on: ${{ matrix.platform }}
2727
steps:
2828
- name: Install Go
2929
if: success()
30-
uses: actions/setup-go@v4
30+
uses: actions/setup-go@v5
3131
with:
3232
go-version: ${{ matrix.go-version }}
3333
- name: Checkout code
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
- name: go tests
3636
run: go test -v -covermode=count -json ./... > test.json
3737
- name: annotate go tests

.github/workflows/release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: macos-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616
- name: Set up Go
17-
uses: actions/setup-go@v4
17+
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.20.x
19+
go-version: 1.22.x
2020
- name: Set up Gon
2121
run: brew tap conductorone/gon && brew install conductorone/gon/gon
2222
- name: Import Keychain Certs
@@ -25,7 +25,7 @@ jobs:
2525
p12-file-base64: ${{ secrets.APPLE_SIGNING_KEY_P12 }}
2626
p12-password: ${{ secrets.APPLE_SIGNING_KEY_P12_PASSWORD }}
2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v4
28+
uses: goreleaser/goreleaser-action@v5
2929
with:
3030
version: latest
3131
args: release --clean
@@ -37,13 +37,13 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343
- name: Set up Go
44-
uses: actions/setup-go@v4
44+
uses: actions/setup-go@v5
4545
with:
46-
go-version: 1.20.x
46+
go-version: 1.22.x
4747
- name: Docker Login
4848
uses: docker/login-action@v1
4949
with:
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Docker Buildx
5454
uses: docker/setup-buildx-action@v1
5555
- name: Run GoReleaser
56-
uses: goreleaser/goreleaser-action@v4
56+
uses: goreleaser/goreleaser-action@v5
5757
with:
5858
version: latest
5959
args: release --clean -f .goreleaser.docker.yaml

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,19 @@ linters-settings:
5757
linters:
5858
disable-all: true
5959
enable:
60-
- deadcode # Finds unused code
6160
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
6261
- gosimple # Linter for Go source code that specializes in simplifying a code
6362
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
6463
- ineffassign # Detects when assignments to existing variables are not used
6564
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
6665
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
6766
- unused # Checks Go code for unused constants, variables, functions and types
68-
- varcheck # Finds unused global variables and constants
6967
- asasalint # Check for pass []any as any in variadic func(...any)
7068
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
7169
- bidichk # Checks for dangerous unicode character sequences
7270
- bodyclose # checks whether HTTP response body is closed successfully
7371
- durationcheck # check for two durations multiplied together
7472
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
75-
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
7673
- exhaustive # check exhaustiveness of enum switch statements
7774
- exportloopref # checks for pointers to enclosing loop variables
7875
- forbidigo # Forbids identifiers

go.mod

Lines changed: 69 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,115 @@
11
module github.com/conductorone/baton-crowdstrike
22

3-
go 1.20
3+
go 1.22
44

55
require (
6-
github.com/conductorone/baton-sdk v0.1.11
7-
github.com/crowdstrike/gofalcon v0.4.2
6+
github.com/conductorone/baton-sdk v0.1.33
7+
github.com/crowdstrike/gofalcon v0.6.1-0.20240426204036-ac8ce2b4f2d7
88
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
99
github.com/spf13/cobra v1.8.0
10-
go.uber.org/zap v1.26.0
10+
go.uber.org/zap v1.27.0
1111
)
1212

1313
require (
14+
filippo.io/age v1.1.1 // indirect
15+
filippo.io/edwards25519 v1.1.0 // indirect
1416
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
15-
github.com/aws/aws-sdk-go-v2 v1.23.1 // indirect
16-
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.5.1 // indirect
17-
github.com/aws/aws-sdk-go-v2/config v1.25.6 // indirect
18-
github.com/aws/aws-sdk-go-v2/credentials v1.16.5 // indirect
19-
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.14.5 // indirect
20-
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.14.4 // indirect
21-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.2.4 // indirect
22-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.5.4 // indirect
23-
github.com/aws/aws-sdk-go-v2/internal/ini v1.7.1 // indirect
24-
github.com/aws/aws-sdk-go-v2/internal/v4a v1.2.4 // indirect
25-
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.10.1 // indirect
26-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.2.4 // indirect
27-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.10.4 // indirect
28-
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.16.4 // indirect
29-
github.com/aws/aws-sdk-go-v2/service/s3 v1.45.1 // indirect
30-
github.com/aws/aws-sdk-go-v2/service/sso v1.17.4 // indirect
31-
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.20.2 // indirect
32-
github.com/aws/aws-sdk-go-v2/service/sts v1.25.5 // indirect
33-
github.com/aws/smithy-go v1.17.0 // indirect
17+
github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect
18+
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.2 // indirect
19+
github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect
20+
github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect
21+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.1 // indirect
22+
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.16.15 // indirect
23+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.5 // indirect
24+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.5 // indirect
25+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
26+
github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.5 // indirect
27+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.2 // indirect
28+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.3.7 // indirect
29+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.7 // indirect
30+
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.17.5 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/s3 v1.53.1 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/sso v1.20.5 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.23.4 // indirect
34+
github.com/aws/aws-sdk-go-v2/service/sts v1.28.6 // indirect
35+
github.com/aws/smithy-go v1.20.2 // indirect
3436
github.com/benbjohnson/clock v1.3.5 // indirect
3537
github.com/blang/semver/v4 v4.0.0 // indirect
3638
github.com/doug-martin/goqu/v9 v9.19.0 // indirect
3739
github.com/dustin/go-humanize v1.0.1 // indirect
38-
github.com/envoyproxy/protoc-gen-validate v1.0.2 // indirect
40+
github.com/envoyproxy/protoc-gen-validate v1.0.4 // indirect
3941
github.com/fsnotify/fsnotify v1.7.0 // indirect
40-
github.com/glebarez/go-sqlite v1.21.2 // indirect
41-
github.com/go-jose/go-jose/v3 v3.0.1 // indirect
42-
github.com/go-logr/logr v1.3.0 // indirect
42+
github.com/glebarez/go-sqlite v1.22.0 // indirect
43+
github.com/go-jose/go-jose/v3 v3.0.3 // indirect
44+
github.com/go-logr/logr v1.4.1 // indirect
4345
github.com/go-logr/stdr v1.2.2 // indirect
4446
github.com/go-ole/go-ole v1.3.0 // indirect
45-
github.com/go-openapi/analysis v0.21.4 // indirect
46-
github.com/go-openapi/errors v0.20.4 // indirect
47-
github.com/go-openapi/jsonpointer v0.20.0 // indirect
48-
github.com/go-openapi/jsonreference v0.20.2 // indirect
49-
github.com/go-openapi/loads v0.21.2 // indirect
50-
github.com/go-openapi/runtime v0.26.0 // indirect
51-
github.com/go-openapi/spec v0.20.9 // indirect
52-
github.com/go-openapi/strfmt v0.21.7 // indirect
53-
github.com/go-openapi/swag v0.22.4 // indirect
54-
github.com/go-openapi/validate v0.22.2 // indirect
55-
github.com/golang/protobuf v1.5.3 // indirect
56-
github.com/google/uuid v1.4.0 // indirect
47+
github.com/go-openapi/analysis v0.23.0 // indirect
48+
github.com/go-openapi/errors v0.22.0 // indirect
49+
github.com/go-openapi/jsonpointer v0.21.0 // indirect
50+
github.com/go-openapi/jsonreference v0.21.0 // indirect
51+
github.com/go-openapi/loads v0.22.0 // indirect
52+
github.com/go-openapi/runtime v0.28.0 // indirect
53+
github.com/go-openapi/spec v0.21.0 // indirect
54+
github.com/go-openapi/strfmt v0.23.0 // indirect
55+
github.com/go-openapi/swag v0.23.0 // indirect
56+
github.com/go-openapi/validate v0.24.0 // indirect
57+
github.com/golang/protobuf v1.5.4 // indirect
58+
github.com/google/uuid v1.6.0 // indirect
5759
github.com/hashicorp/hcl v1.0.0 // indirect
5860
github.com/inconshreveable/mousetrap v1.1.0 // indirect
5961
github.com/jmespath/go-jmespath v0.4.0 // indirect
6062
github.com/josharian/intern v1.0.0 // indirect
61-
github.com/klauspost/compress v1.17.3 // indirect
62-
github.com/lufia/plan9stats v0.0.0-20231016141302-07b5767bb0ed // indirect
63+
github.com/klauspost/compress v1.17.8 // indirect
64+
github.com/lufia/plan9stats v0.0.0-20240408141607-282e7b5d6b74 // indirect
6365
github.com/magiconair/properties v1.8.7 // indirect
6466
github.com/mailru/easyjson v0.7.7 // indirect
6567
github.com/mattn/go-isatty v0.0.20 // indirect
6668
github.com/mitchellh/mapstructure v1.5.0 // indirect
69+
github.com/ncruces/go-strftime v0.1.9 // indirect
6770
github.com/oklog/ulid v1.3.1 // indirect
6871
github.com/opentracing/opentracing-go v1.2.0 // indirect
69-
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
70-
github.com/power-devops/perfstat v0.0.0-20221212215047-62379fc7944b // indirect
72+
github.com/pelletier/go-toml/v2 v2.2.1 // indirect
73+
github.com/power-devops/perfstat v0.0.0-20240221224432-82ca36839d55 // indirect
7174
github.com/pquerna/xjwt v0.2.0 // indirect
7275
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
73-
github.com/sagikazarmark/locafero v0.3.0 // indirect
76+
github.com/sagikazarmark/locafero v0.4.0 // indirect
7477
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
7578
github.com/segmentio/ksuid v1.0.4 // indirect
76-
github.com/shirou/gopsutil/v3 v3.23.10 // indirect
79+
github.com/shirou/gopsutil/v3 v3.24.3 // indirect
7780
github.com/shoenig/go-m1cpu v0.1.6 // indirect
7881
github.com/sirupsen/logrus v1.9.3 // indirect
7982
github.com/sourcegraph/conc v0.3.0 // indirect
8083
github.com/spf13/afero v1.11.0 // indirect
8184
github.com/spf13/cast v1.6.0 // indirect
8285
github.com/spf13/pflag v1.0.5 // indirect
83-
github.com/spf13/viper v1.17.0 // indirect
86+
github.com/spf13/viper v1.18.2 // indirect
8487
github.com/subosito/gotenv v1.6.0 // indirect
85-
github.com/tklauser/go-sysconf v0.3.12 // indirect
86-
github.com/tklauser/numcpus v0.6.1 // indirect
87-
github.com/yusufpapurcu/wmi v1.2.3 // indirect
88-
go.mongodb.org/mongo-driver v1.13.0 // indirect
89-
go.opentelemetry.io/otel v1.21.0 // indirect
90-
go.opentelemetry.io/otel/metric v1.21.0 // indirect
91-
go.opentelemetry.io/otel/trace v1.21.0 // indirect
88+
github.com/tklauser/go-sysconf v0.3.13 // indirect
89+
github.com/tklauser/numcpus v0.7.0 // indirect
90+
github.com/yusufpapurcu/wmi v1.2.4 // indirect
91+
go.mongodb.org/mongo-driver v1.15.0 // indirect
92+
go.opentelemetry.io/otel v1.25.0 // indirect
93+
go.opentelemetry.io/otel/metric v1.25.0 // indirect
94+
go.opentelemetry.io/otel/trace v1.25.0 // indirect
9295
go.uber.org/multierr v1.11.0 // indirect
93-
go.uber.org/ratelimit v0.3.0 // indirect
94-
golang.org/x/crypto v0.16.0 // indirect
95-
golang.org/x/exp v0.0.0-20231127185646-65229373498e // indirect
96-
golang.org/x/net v0.19.0 // indirect
97-
golang.org/x/oauth2 v0.15.0 // indirect
98-
golang.org/x/sync v0.5.0 // indirect
99-
golang.org/x/sys v0.15.0 // indirect
96+
go.uber.org/ratelimit v0.3.1 // indirect
97+
golang.org/x/crypto v0.22.0 // indirect
98+
golang.org/x/exp v0.0.0-20240416160154-fe59bbe5cc7f // indirect
99+
golang.org/x/net v0.24.0 // indirect
100+
golang.org/x/oauth2 v0.19.0 // indirect
101+
golang.org/x/sync v0.7.0 // indirect
102+
golang.org/x/sys v0.19.0 // indirect
100103
golang.org/x/text v0.14.0 // indirect
101-
google.golang.org/appengine v1.6.8 // indirect
102-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 // indirect
103-
google.golang.org/grpc v1.59.0 // indirect
104-
google.golang.org/protobuf v1.31.0 // indirect
104+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240415180920-8c6c420018be // indirect
105+
google.golang.org/grpc v1.63.2 // indirect
106+
google.golang.org/protobuf v1.33.0 // indirect
105107
gopkg.in/ini.v1 v1.67.0 // indirect
106108
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
107109
gopkg.in/yaml.v2 v2.4.0 // indirect
108110
gopkg.in/yaml.v3 v3.0.1 // indirect
109-
modernc.org/libc v1.34.11 // indirect
111+
modernc.org/libc v1.50.2 // indirect
110112
modernc.org/mathutil v1.6.0 // indirect
111-
modernc.org/memory v1.7.2 // indirect
112-
modernc.org/sqlite v1.27.0 // indirect
113+
modernc.org/memory v1.8.0 // indirect
114+
modernc.org/sqlite v1.29.8 // indirect
113115
)

0 commit comments

Comments
 (0)