# Secret Gist not enabled

**URL:** <https://discourse.jupyter.org/t/secret-gist-not-enabled/10040>\
**Category:** Binder\
**Created:** [July 20, 2021, 8:22am UTC](https://discourse.jupyter.org/t/secret-gist-not-enabled/10040 "2021-07-20T08:22:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://discourse.jupyter.org/u/Henry)\
**Post date:** [July 20, 2021, 8:22am UTC](https://discourse.jupyter.org/t/secret-gist-not-enabled/10040/1 "2021-07-20T08:22:14Z")

</div>

Hey!

Are secret gist deactivated on purpose?

They are not-listed, publicly available URLs, which can be embedded on every website. I tend to keep my gist secret and only share them with friends/colleagues to highlight something.

```bash
Error resolving ref for gist:<url>/master: You seem to want to use a secret Gist, but do not have permission to do so. To enable secret Gist support, set (or have an administrator set) 'GistRepoProvider.allow_secret_gist = True'

```

---

<div class="post-metadata">

**Author:** ![manics](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/manics/32/85_2.png) [@manics](https://discourse.jupyter.org/u/manics)\
**Post date:** [July 20, 2021, 9:27am UTC](https://discourse.jupyter.org/t/secret-gist-not-enabled/10040/2 "2021-07-20T09:27:17Z")

</div>

Are you talking about [mybinder.org](http://mybinder.org)? Some information on usage is public, for instance see this thread:  
[A datasette of mybinder.org launches](https://discourse.jupyter.org/t/a-datasette-of-mybinder-org-launches/3719)  
If secret repos were enabled they’d show up in that query.

---

<div class="post-metadata">

**Author:** ![Henry](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@Henry](https://discourse.jupyter.org/u/Henry)\
**Post date:** [July 20, 2021, 9:55am UTC](https://discourse.jupyter.org/t/secret-gist-not-enabled/10040/3 "2021-07-20T09:55:58Z")

</div>

Yes, I want to use [mybinder.org](http://mybinder.org) via nbviewer. I put up a short example:

- [gist](https://gist.github.com/enryH/7fcb438dec20c01b5bdfa250fb960d79)

throws by clicking “execute on mybinder” in the top right corner:

```bash
Error resolving ref for gist:enryH/7fcb438dec20c01b5bdfa250fb960d79/master: You seem to want to use a secret Gist, but do not have permission to do so. To enable secret Gist support, set (or have an administrator set) 'GistRepoProvider.allow_secret_gist = True'

```

---

<div class="post-metadata">

**Author:** ![betatim](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/betatim/32/10_2.png) [@betatim](https://discourse.jupyter.org/u/betatim)\
**Post date:** [July 20, 2021, 10:02am UTC](https://discourse.jupyter.org/t/secret-gist-not-enabled/10040/4 "2021-07-20T10:02:56Z")

</div>

[mybinder.org](http://mybinder.org) does not support private repositories and secret gists. If you need to keep things private you need to run your own BinderHub instance (and follow the instructions about setting up access rights).

---

<div class="post-metadata">

**Author:** ![moble](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/moble/32/6474_2.png) [@moble](https://discourse.jupyter.org/u/moble)\
**Post date:** [February 14, 2022, 9:44pm UTC](https://discourse.jupyter.org/t/secret-gist-not-enabled/10040/5 "2022-02-14T21:44:26Z")

</div>

I encountered the same problem, googled it, and found only this discussion (which probably isn’t quite the right place to have this conversation).

Anyway, the solution is to just select the more generic “Git repository” option on [mybinder.org](http://mybinder.org), and paste in the actual URL to the _git_ repo itself — rather than the gist.github URL. To find it, go to the gist.github page, look for “Clone via HTTPS” in the dropdown menu that starts with “Embed”, and paste that URL into the mybinder page. It works just fine, since — again — a “secret” gist is publicly available, but just isn’t listed on the user’s page.
