Skip to content

pass --config as environment variable #1320

Closed Answered by chris-rock
michaelkrieg asked this question in Q&A
Discussion options

You must be logged in to vote

@michaelkrieg that is a great question. We have multiple options to set the configuration path, which by default includes the service account to communicate with the Mondoo Platform.

If you have the config locally available, you can use MONDOO_CONFIG_PATH:

export MONDOO_CONFIG_PATH=~/.config/mondoo/mondoo-space1.yml

When you run cnspec or cnquery you see the log being read from the env variable:

$ export MONDOO_CONFIG_PATH=~/.config/mondoo/mondoo-default.yml
$ cnspec status
→ loaded configuration from /Users/chris/.config/mondoo/mondoo-default.yml using source $MONDOO_CONFIG_PATH

In CI/CD systems you normally need to store data as part of the ENV variables itself. Storing json files is …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michaelkrieg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants