From: Matt Wette <matt.wette@gmail.com>
To: 39511@debbugs.gnu.org
Subject: bug#39511: github auth
Date: Sat, 15 Feb 2020 10:43:56 -0800 [thread overview]
Message-ID: <bc46393e-140e-48d8-1918-2b017b7a4980@gmail.com> (raw)
In-Reply-To: <b9548ed0-f38b-64cc-961b-fa01f006d36f@gmail.com>
I have not gotten into testing, but according to email and references
provided previously the patch below might work.
--- github.scm-orig 2020-02-15 10:32:52.209481329 -0800
+++ github.scm 2020-02-15 10:40:36.958144491 -0800
@@ -154,14 +154,12 @@
;; Ask for version 3 of the API as suggested at
;; <https://developer.github.com/v3/>.
`((Accept . "application/vnd.github.v3+json")
+ ,@(if (%github-token)
+ `(Authorization . ,(string-append "token " (%github-token)))
+ '())
(user-agent . "GNU Guile")))
- (define (decorate url)
- (if (%github-token)
- (string-append url "?access_token=" (%github-token))
- url))
-
- (match (json-fetch (decorate release-url) #:headers headers)
+ (match (json-fetch release-url #:headers headers)
(#()
;; We got the empty list, presumably because the user didn't use
GitHub's
;; "release" mechanism, but hopefully they did use Git tags.
next prev parent reply other threads:[~2020-02-15 18:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-08 14:50 bug#39511: github tokens being deprecated Matt Wette
2020-02-15 18:43 ` Matt Wette [this message]
2020-02-22 10:52 ` bug#39511: github auth Ludovic Courtès
2020-02-22 14:39 ` Matt Wette
2020-10-05 2:56 ` Maxim Cournoyer
2020-02-15 23:02 ` bug#39511: udpate Matt Wette
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc46393e-140e-48d8-1918-2b017b7a4980@gmail.com \
--to=matt.wette@gmail.com \
--cc=39511@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).