mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #675] Github Secrets Cache Handler #397
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#397
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Peter-Schorn on GitHub (Apr 19, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/675
I've figured out how to create a cache handler that saves the authorization information to Github secrets. It's implemented in the "secrets-cache-handler" branch of my fork. See #672.
First run this script on your local machine in order to retrieve the token info:
Then, create a repository secret called
SPOTIPY_TOKEN_INFOwith the value set to the token info you retrieved from the above script as a string.Next, create secrets called
SPOTIPY_CLIENT_IDandSPOTIPY_CLIENT_SECRETthat store your client id and client secret, respectively.Next, create a personal access token with all of the
repopermissions and store it in a secret calledPERSONAL_GITHUB_ACCESS_TOKEN.And these are the changes I made to the workflow file: