Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 detect default Mondoo CLI config file #142

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Oct 21, 2024

The documentation says that, if no authentication is configured/provided,
we will try the default Mondoo CLI configuration file, before this change,
we were not looking for it.

Code inspired by https://github.com/mondoohq/cnquery/blob/main/cli/config/path.go#L116

The documentation says that, if no authentication is
configured/provided, we will try the default Mondoo CLI configuration
file, before this change, we were not looking for it.

Code inspired from https://github.com/mondoohq/cnquery/blob/main/cli/config/path.go#L116

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
@@ -10,36 +12,59 @@ require (
github.com/hashicorp/terraform-plugin-go v0.24.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/hashicorp/terraform-plugin-testing v1.10.0
go.mondoo.com/mondoo-go v0.0.0-20241001090148-7f5a1917d669
go.mondoo.com/cnquery/v11 v11.26.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all of these changes are coming from pulling cnquery as a dependency.

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
Copy link

@scottford-io scottford-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@afiune looks good! 👍

@afiune afiune merged commit 6bbc264 into main Oct 22, 2024
19 checks passed
@afiune afiune deleted the afiune/default-config-file branch October 22, 2024 08:40
@github-actions github-actions bot locked and limited conversation to collaborators Oct 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants