Update token cache and repair environment setup#2
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the
weekly-catalog-updateGitHub Actions workflow to improve environment variable management and add a step for pre-seeding the Spotify token cache. The changes focus on enhancing security and reliability by using repository/environment variables instead of secrets for non-sensitive data, and by ensuring the Spotify authentication cache is properly initialized before running the catalog processing script.Workflow improvements:
environmentkey to theupdate-catalogjob to specify the deployment environment as "weekly update".Environment variable management:
secretstovarsfor non-sensitive configuration values such asSPOTIPY_REDIRECT_URI,SPOTIFY_USERNAME,PLAYLIST_NAME,DAYS_TO_PARSE,TOP_N, andPIVOT. Sensitive values likeSPOTIPY_CLIENT_ID,SPOTIPY_CLIENT_SECRET, andSPOTIFY_REFRESH_TOKENremain insecrets.Spotify authentication handling:
.cache-${SPOTIFY_USERNAME}) with a placeholder access token and the actual refresh token from secrets, ensuring the subsequent catalog processing script can authenticate with Spotify.