Search code examples
githubrss

Revoke / Generate Github personal news RSS feed token


I accidentally leaked it. I searched the Github docs and account settings but did not find anything to recover.


Solution

  • You should be able to regenerate a new PAT (Personal Access Token), and invalidate/remove the previous one in your to access your Settings / Developer Settings / Personal access tokens / Tokens (classics) section.

    Then you should be able to test your RSS feeds, knowning that, as the Feed API page mentions:

    Private feeds are only returned when authenticating via Basic Auth (USERNAME:TOKEN) since current feed URIs use the older, non revocable auth tokens.

    You can list your feeds with

    curl \
      -H "Accept: application/vnd.github+json" \
      -H "Authorization: Bearer <YOUR-TOKEN>" \
      https://api.github.com/feeds
    

    Or use thrid-part GitHub feed generators like RSSHub (as listed here).