Skip to content

Commit bf8498c

Browse files
authored
Correct references to GitHub in the GitLab provider (#6027)
Some copy pasta here Signed-off-by: Tim Smith <tsmith84@gmail.com>
1 parent 147d103 commit bf8498c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

providers/gitlab/config/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var Config = plugin.Provider{
2828
Available commands:
2929
group GitLab group
3030
project GitLab project
31-
31+
3232
Examples:
3333
cnspec scan gitlab --group <GROUP_NAME> --token <YOUR_TOKEN>
3434
cnspec scan gitlab --discover projects --token <YOUR_TOKEN>
@@ -37,9 +37,9 @@ var Config = plugin.Provider{
3737
cnspec scan gitlab --discover terraform --token <YOUR_TOKEN>
3838
cnquery shell gitlab --group <GROUP_NAME> --token <YOUR_TOKEN>
3939
cnquery shell gitlab --group <GROUP_NAME> --project <PROJECT_NAME> --token <YOUR_TOKEN>
40-
40+
4141
Notes:
42-
Mondoo needs a personal access token to scan a GitHub group or project. The token's level of access determines how much information Mondoo can retrieve. Instead of providing a token with every command, you can supply your personal access token to Mondoo by setting the GITLAB_TOKEN environment variable. To learn how, read https://mondoo.com/docs/cnspec/saas/gitlab/.
42+
Mondoo needs a personal access token to scan a GitLab group or project. The token's level of access determines how much information Mondoo can retrieve. Instead of providing a token with every command, you can supply your personal access token to Mondoo by setting the GITLAB_TOKEN environment variable. To learn how, read https://mondoo.com/docs/cnspec/saas/gitlab/.
4343
`,
4444
Discovery: []string{
4545
provider.DiscoveryGroup,

providers/gitlab/connection/connection.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"strings"
1313

1414
"github.com/rs/zerolog/log"
15-
"gitlab.com/gitlab-org/api/client-go"
15+
gitlab "gitlab.com/gitlab-org/api/client-go"
1616
"go.mondoo.com/cnquery/v12/providers-sdk/v1/inventory"
1717
"go.mondoo.com/cnquery/v12/providers-sdk/v1/plugin"
1818
"go.mondoo.com/cnquery/v12/providers-sdk/v1/vault"
@@ -48,7 +48,7 @@ func NewGitLabConnection(id uint32, asset *inventory.Asset, conf *inventory.Conf
4848
if cred.Type == vault.CredentialType_password {
4949
token = string(cred.Secret)
5050
} else {
51-
log.Warn().Str("credential-type", cred.Type.String()).Msg("unsupported credential type for GitHub provider")
51+
log.Warn().Str("credential-type", cred.Type.String()).Msg("unsupported credential type for GitLab provider")
5252
}
5353
}
5454
}

providers/gitlab/provider/provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"os"
1010
"strconv"
1111

12-
"gitlab.com/gitlab-org/api/client-go"
12+
gitlab "gitlab.com/gitlab-org/api/client-go"
1313
"go.mondoo.com/cnquery/v12/llx"
1414
"go.mondoo.com/cnquery/v12/providers-sdk/v1/inventory"
1515
"go.mondoo.com/cnquery/v12/providers-sdk/v1/plugin"

providers/gitlab/resources/gitlab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99
"strconv"
1010

11-
"gitlab.com/gitlab-org/api/client-go"
11+
gitlab "gitlab.com/gitlab-org/api/client-go"
1212
"go.mondoo.com/cnquery/v12/llx"
1313
"go.mondoo.com/cnquery/v12/providers-sdk/v1/plugin"
1414
"go.mondoo.com/cnquery/v12/providers/gitlab/connection"

0 commit comments

Comments
 (0)