No active warehouse selected in the current session. User has write permissions on the schema and to use the warehouse

I am running a workflow on Github actions with which runs the dbt build command on snowflake.
The user in my profile.yaml file is the owner of the schema in the database which it interacts with and has ‘usage’ permission on the database itself. It also has the permission to the warehouse and it is set as its default warehouse on snowflake. However I keep receiving this error when the workflow runs:

000606 (57P03): No active warehouse selected in the current session. Select an active warehouse with the ‘use warehouse’ command.

1 Like