denoland / denoland/deploy_feedback

Unable to import private modules with `DENO_AUTH_TOKENS`

Open
#261 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Reproduction steps

1. Given a file that imports from a private repository `import { ... } from "https://raw.githubusercontent.com/"`
2. Deploy
3. See the error
![image](https://user-images.githubusercontent.com/10420994/183341388-26a0a2ca-f082-441c-8bba-fa51a5959d51.png)
4. Add environment variable `DENO_AUTH_TOKENS` with github access token format `@raw.githubusercontent.com;`
![image](https://user-images.githubusercontent.com/10420994/183341259-5476b2e2-81fb-43d1-bb45-85e36d58d396.png)
5. Expect Deploy to automatically add the `Authorization: Bearer ` and succeed in importing the module.
6. Actual: Still see the `404 Not Found`

Setting local environment variable `DENO_AUTH_TOKENS` in `~/.bashrc` working successfully.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.