Why use Snowflake CLI and GitHub Actions?¶
This template uses Snowflake CLI to deliver local dbt source to a native DBT PROJECT object. GitHub Actions provides a reviewed commit and separate identities for deployment and operation.
Recommendation¶
Use Snowflake CLI in GitHub Actions, with OIDC authentication and a pinned runtime. Snowflake recommends this deployment method. GitHub checks out the reviewed commit; CLI uploads its files and creates or updates the native object. A Snowflake Git repository object is not required.
| Method | Native dbt deployment? | Fit for this template |
|---|---|---|
| Snowflake CLI | Yes: snow dbt deploy |
Best fit: staging, deployment, Git metadata, and CI integration are provided. |
| SQL | Yes: CREATE DBT PROJECT and ALTER DBT PROJECT … DEPLOY |
Useful when a team already manages source staging and SQL delivery. |
| Snowsight | Yes: deploy from a workspace | Useful for interactive development and initial exploration. |
| DCM Projects | No documented DBT PROJECT entity |
Can manage supported surrounding objects, but cannot replace native dbt deployment here. |
The supported entity list does not include dbt projects. This conclusion concerns DCM's managed entities; a task or procedure that invokes dbt is a separate object.
Sources: deploy dbt objects, CLI CI/CD.
Why the template makes these choices¶
The checked-out files are the deployment source. GitHub supplies the reviewed commit; the generated receipt and downloaded hashes connect that commit to what Snowflake received. Native commit metadata adds evidence when the account exposes it.
Preserving the existing object avoids losing its identity and run history. That is why deployment omits --force and refuses numbered objects until a separate migration is reviewed. The CLI can update object properties before source delivery finishes, so successful verification matters beyond a successful upload.
Separate object and model destinations make write scope visible. A credentials-free native profile carries the model context, while the selected CLI connection or OIDC identity supplies authentication. Snowflake prefers dbt_projects_profiles.yml over personal profiles.yml.
Independent project administrator and operator roles separate delivering source from changing tables and views. Corporate deployment disables automatic compilation and uses its own identity; the operator performs compilation/build through a separate job. See role separation. Remote packages need an existing external access integration; explicit handling keeps package access and native environment settings from being inferred from a developer's personal secrets.
Sources: CLI deploy flags, access control, DESCRIBE metadata, dependencies.
Versions and rollback¶
The template pins Snowflake CLI 3.28.0 and defaults to dbt Fusion 2.0.0. Explicit Core 1.11.11 configurations are also supported. Pinning makes the deployment interface and runtime choice predictable. Account availability can differ from the published runtime table; deployment checks SYSTEM$SUPPORTED_DBT_VERSIONS() before applying.
Sources: CLI release, supported runtimes, dbt v2.0 release.
The 2026_06 behavior change bundle is enabled by default, and new opted-in objects use a single mutable live version. Existing objects can still retain legacy numbered versions until migrated. This starter detects the distinction through default_version, and offers an explicit, separate migrate command for the configured object. Deployment never silently migrates or replaces legacy objects. Migration removes access to numbered source history while preserving execution history. See the LIVE explanation.
For a live object, rollback means redeploying a known earlier Git commit. Project deployment does not roll back tables or views changed by a subsequent model build. See the version behavior change.
Account compatibility¶
Native metadata availability can vary by account. The wrapper verifies the exposed fields and checks deployed source independently through its receipt and file hashes. It does not enable account features to obtain additional metadata.
Snowflake supports downloading files from snow://dbt/<database>.<schema>.<project>/versions/live/ with snow dbt copy. This provides a source-content verification path when native commit metadata is unavailable. Compare downloaded source files with the exact prepared deployment snapshot; generated runtime files can be additional output.
Upload permissions¶
CLI uploads through a temporary stage. The template therefore does not add permanent-stage creation privileges just for the upload. Sources: pinned CLI implementation, CREATE STAGE permissions.