{"id":18366436,"url":"https://github.com/aveek-saha/spotify-box","last_synced_at":"2026-04-09T10:05:16.215Z","repository":{"id":43279610,"uuid":"303486957","full_name":"Aveek-Saha/spotify-box","owner":"Aveek-Saha","description":"🎧 Update a pinned gist to show your top Spotify tracks/artists.","archived":false,"fork":false,"pushed_at":"2022-03-10T08:55:55.000Z","size":37,"stargazers_count":20,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T21:39:12.714Z","etag":null,"topics":["gist","gistbox","pinned-gist","secrets","spotify","spotify-box","spotify-plugin"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aveek-Saha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-12T19:02:20.000Z","updated_at":"2025-09-30T21:39:39.000Z","dependencies_parsed_at":"2022-08-12T10:21:36.362Z","dependency_job_id":null,"html_url":"https://github.com/Aveek-Saha/spotify-box","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Aveek-Saha/spotify-box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aveek-Saha%2Fspotify-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aveek-Saha%2Fspotify-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aveek-Saha%2Fspotify-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aveek-Saha%2Fspotify-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aveek-Saha","download_url":"https://codeload.github.com/Aveek-Saha/spotify-box/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aveek-Saha%2Fspotify-box/sbom","scorecard":{"id":18202,"data":{"date":"2025-08-11","repo":{"name":"github.com/Aveek-Saha/spotify-box","commit":"ef7cd554936ecb76e572f0a9df77981dcd9ba29f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/update.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/Aveek-Saha/spotify-box/update.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/update.yml:12","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-h452-7996-h45h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T16:14:05.002Z","repository_id":43279610,"created_at":"2025-08-14T16:14:05.002Z","updated_at":"2025-08-14T16:14:05.002Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004568,"owners_count":26083736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gist","gistbox","pinned-gist","secrets","spotify","spotify-box","spotify-plugin"],"created_at":"2024-11-05T23:17:39.313Z","updated_at":"2025-10-10T15:49:58.959Z","avatar_url":"https://github.com/Aveek-Saha.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"450\" src=\"https://user-images.githubusercontent.com/31800695/95853311-d40d3400-0d72-11eb-86f5-460d4214001c.png\"\u003e\n  \u003ch3 align=\"center\"\u003espotify-box\u003c/h3\u003e\n  \u003cp align=\"center\"\u003e🎧 Update a pinned gist to show your top Spotify tracks/artists\u003c/p\u003e\n\u003c/p\u003e\n\n---\n\n\u003e 📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists\n\n# Setup\n\n## Prep work\n\n### GitHub\n\n1. Create a new public GitHub Gist. (https://gist.github.com/)\n1. Create an access token with the `gist` scope and copy it. (https://github.com/settings/tokens/new)\n\n### Spotify\n\n1. Go to the Spotify Developer Dashboard and log in. (https://developer.spotify.com/dashboard/)\n1. Create an app with a name and description.\n1. Copy the `Client ID` and `Client secret`.\n1. Click on edit settings and add `http://localhost:5000/` as a redirect URI.\n1. In your browser enter this URL and replace \u003cclient_id\u003e in this url: \n    ```\n    https://accounts.spotify.com/authorize?client_id=\u003cclient_id\u003e\n    \u0026response_type=code\u0026redirect_uri=http://localhost:5000/\n    \u0026scope=user-top-read%20user-read-recently-played\n    ```\n1. After this you should see an url like this in your address bar: `http://localhost:5000/?code=\u003ccode\u003e`. Copy this code query parameter.\n1. Use this website to generate a base 64 string of the form `client_id:client_secret`. (https://www.base64encode.org/)\n1. In a terminal, run the following command and use the base 64 encoded string and code from the previous steps.\n\n    ```command\n    curl -H \"Authorization: Basic \u003cbase 64 str\u003e\" -d grant_type=authorization_code -d code=\u003ccode\u003e \n    -d redirect_uri=http://localhost:5000/ https://accounts.spotify.com/api/token \n    ```\n1. A JSON response containing a `refresh_token` will be returned. Copy this value.\n\n## Project setup\n\n1. Fork this repo\n1. Go to the repo **Settings \u003e Secrets**\n1. Add the following environment variables:\n   - **GH_TOKEN:** The GitHub access token generated above.\n   - **GIST_ID:** The ID portion from your gist url: `https://gist.github.com/Aveek-Saha/`**`8335e85451541072dd25fda601129f7d`**.\n   - **CLIENT_ID:** Your Spotify `client_id`.\n   - **CLIENT_SECRET:** Your Spotify `client_secret`.\n   - **REFRESH_TOKEN:** The `refresh_token` generated.\n   - **TYPE:** The type of data generated on the gist. Can be one of `top_tracks`, `top_artists` or `recently_played`.\n   - **TIME_RANGE:** The time frame for computing `top_tracks` or `top_artists`. Can be one of `long_term`, `medium_term` or `short_term`.\n\n## Credits\nThis code was inspired by [@matchai's bird-box](https://github.com/matchai/bird-box).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faveek-saha%2Fspotify-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faveek-saha%2Fspotify-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faveek-saha%2Fspotify-box/lists"}