Skip to content

Commit

Permalink
Merge pull request dbt-labs#2619 from dbt-labs/ly-docs-cloud-rn
Browse files Browse the repository at this point in the history
dbt Cloud RN: Private packages must be cloned
  • Loading branch information
nghi-ly authored Dec 23, 2022
2 parents 3d3697e + d0c2d33 commit d2d7174
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "Private packages must be cloned using access tokens provided by environment variables"
description: "Private GitHub packages must be cloned using access tokens provided by environment variables."
sidebar_label: "Deprecation: Private packages must be cloned using access tokens"
tags: [Dec-23-2022]
---

The supported method for cloning private GitHub packages is the [git token method](/docs/build/packages#git-token-method), where an appropriate access token is passed into the package repository URL with an environment variable.

A small number of people have been able to clone private packages using dbt's native GitHub application without explicitly providing an access token. This functionality is being deprecated as it’s limited in flexibility.

If you have been using a package hosted in a private repository on GitHub, you must start passing an access token into the URL.

An example of passing an access token:

<File name='packages.yml'>

```yaml

packages:
- git: "https://{{env_var('DBT_ENV_SECRET_GIT_CREDENTIAL')}}@github.com/dbt-labs/awesome_repo.git"

```
</File>

0 comments on commit d2d7174

Please sign in to comment.