Snowflake-Labs / schemachange

A Database Change Management tool for Snowflake
Apache License 2.0
517 stars 229 forks source link

Defer to SNOWFLAKE_TOKEN if set instead of fetching an oauth token #290

Open zanebclark opened 1 month ago

zanebclark commented 1 month ago

Here, we need to check for a SNOWFLAKE_TOKEN environment variable before we insist on fetching a new one. I'm using schemachange along with snow cli to deploy Snowpark apps and that library doesn't fetch the token for you. I'd like to be able to fetch one and use it for both deployments.