# how to set DBT\_ENV\_SECRET\_GIT\_CREDENTIAL

**URL:** <https://discourse.getdbt.com/t/how-to-set-dbt-env-secret-git-credential/10718>\
**Category:** Help\
**Created:** [November 9, 2023, 12:04pm UTC](https://discourse.getdbt.com/t/how-to-set-dbt-env-secret-git-credential/10718 "2023-11-09T12:04:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akhildevvr](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@akhildevvr](https://discourse.getdbt.com/u/akhildevvr)\
**Post date:** [November 9, 2023, 12:04pm UTC](https://discourse.getdbt.com/t/how-to-set-dbt-env-secret-git-credential/10718/1 "2023-11-09T12:04:28Z")

</div>

## The problem I’m having

I am trying to pull DBt packages from a private Github repo and i need to pass github token to access the repo and install the package via dbt DEPS.

## The context of why I’m trying to do this

## What I’ve already tried

I am trying to deifne the git repo as below:

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

```

## Some example code or error messages

I am getting below error:

```auto
Env var required but not provided: 'DBT_ENV_SECRET_GIT_CREDENTIAL'

```
