Open hb0313 opened 4 months ago
What worked for me was, instead of setting a DATABRICKS_TOKEN, setting a DATABRICKS_CLIENT_ID and DATABRICKS_CLIENT_SECRET generated for the service principal. E.g.
env:
DATABRICKS_TOKEN: ${{ secrets.STAGING_WORKSPACE_TOKEN }}
becomes
env:
DATABRICKS_CLIENT_SECRET: ${{ secrets.DATABRICKS_CLIENT_SECRET }}
DATABRICKS_CLIENT_ID: ${{ secrets.DATABRICKS_CLIENT_ID }}
Here's how I generated the secret, you do have to be an admin.
Used databricks/setup-cli@v0.232.1.
I have devops piepline setup to deploy bundle on Dev and QA env, both have different job. However, QA shows below error but the deployment is successful. Not sure what the issue is? But looks like after deployment the cmd try to login to dev through QA job.
Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
GET /api/2.0/preview/scim/v2/Me
Devops pipeline yml
Let me know if any addition info is required.