From 7f51e152c49de623644abef87c888ad725b552de Mon Sep 17 00:00:00 2001 From: tionis Date: Tue, 21 Oct 2025 16:38:00 +0200 Subject: [PATCH] added support for github gists github gists under gist.github.com are just git repos that share the same auth infrastructure as the normal github.com instance, so we can just reuse the existing github.com configuration there --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 4514195..5c7984f 100644 --- a/main.go +++ b/main.go @@ -46,6 +46,11 @@ var configByHost = map[string]oauth2.Config{ ClientSecret: "2b746eea028711749c5062b9fe626fed78d03cc0", Endpoint: endpoints.GitHub, Scopes: []string{"repo", "gist", "workflow"}}, + "gist.github.com": { + ClientID: "b895675a4e2cf54d5c6c", + ClientSecret: "2b746eea028711749c5062b9fe626fed78d03cc0", + Endpoint: endpoints.GitHub, + Scopes: []string{"repo", "gist", "workflow"}}, // https://gitlab.com/oauth/applications/232663 "gitlab.com": { ClientID: "10bfbbf46e5b760b55ce772a262d7a0205eacc417816eb84d37d0fb02c89bb97",