Closed sp-aaflalo closed 3 months ago
@sp-aaflalo can you try using environment variables instead of trying to create a config?
Here's an example from this repo directly.
Then in the steps, you can install CS Tools from a particular tag using python -m pip install cs_tools[cli] @ https://github.com/thoughtspot/cs_tools/archive/v1.5.9.zip"
Then call your commands in another step, telling CS Tools to pull config info from the environment with --config ENV:
If I do that I encounter issue with cs_tools tools git
tool.
Seems to be related to the order of parameter.
Also, it's because I'm creating a clean reusable action "setup-thoughspot-cli" that set the config per default. Easier for other commands later, never have to give a config.
Currently, I'm simply pre-populating the .meta-config.json
with data I want.
@sp-aaflalo There's a bug I still haven't resolved on param ordering (#135), when the tool has an argument. For now, it's best to leave --config JKL
at the end of the command.
I'll add a check to the analytics prompt for CI environments so it doesn't pop up.
@souravkumar93 once we release 1.5.10 , if you want to opt out of anonymous analytics (we only take anon analytics for CI environments)
you can either set it in the .meta-config.json
{
"analytics": {
"is_opted_in": false,
"last_checkpoint": "2012-06-01T00:00:00+00:00",
"can_record_url": false
},
}
or set CS_TOOLS_ANALYTICS_OPT_OUT
to any value.
Awesome, that does make it easier to have the ENV Var !
First Stop
Platform Configuration
Description
I'm trying to do something like this in my GitHub action:
cs_tools config create --config "default" --default --url "***" --username "***" --secret "***"
But it keeps failing because of the telemetry prompt that I can't answer (even tried
yes "no" | COMMAND
).This is quite annoying, is there a way for me to answer that prompt thought an argument of the command ?
Need to upload log files securely?
No response