{"id":33928830,"url":"https://github.com/robincsamuel/ghost-google-drive","last_synced_at":"2025-12-12T11:48:18.616Z","repository":{"id":36227869,"uuid":"40532177","full_name":"robincsamuel/ghost-google-drive","owner":"robincsamuel","description":"Google drive storage for ghost","archived":false,"fork":false,"pushed_at":"2025-04-25T05:00:16.000Z","size":69,"stargazers_count":70,"open_issues_count":3,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-03T01:30:21.789Z","etag":null,"topics":["ghost","ghost-google-drive","google-drive","google-drive-storage"],"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/robincsamuel.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":"2015-08-11T09:03:45.000Z","updated_at":"2025-04-25T05:00:20.000Z","dependencies_parsed_at":"2022-09-09T11:40:53.696Z","dependency_job_id":null,"html_url":"https://github.com/robincsamuel/ghost-google-drive","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/robincsamuel/ghost-google-drive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robincsamuel%2Fghost-google-drive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robincsamuel%2Fghost-google-drive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robincsamuel%2Fghost-google-drive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robincsamuel%2Fghost-google-drive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robincsamuel","download_url":"https://codeload.github.com/robincsamuel/ghost-google-drive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robincsamuel%2Fghost-google-drive/sbom","scorecard":{"id":780665,"data":{"date":"2025-08-11","repo":{"name":"github.com/robincsamuel/ghost-google-drive","commit":"823346d028105b403f6ba5a38a8b94a4964bb09a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":5,"reason":"Found 3/6 approved changesets -- score normalized to 5","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":"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g"],"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 27 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-23T04:49:49.745Z","repository_id":36227869,"created_at":"2025-08-23T04:49:49.745Z","updated_at":"2025-08-23T04:49:49.745Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27682220,"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-12-12T02:00:06.775Z","response_time":129,"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":["ghost","ghost-google-drive","google-drive","google-drive-storage"],"created_at":"2025-12-12T11:48:18.026Z","updated_at":"2025-12-12T11:48:18.610Z","avatar_url":"https://github.com/robincsamuel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ghost Google Drive\n[Google drive storage](https://github.com/robincsamuel/ghost-google-drive) for ghost allows you to store the contents on google drive. I believe its helpful if you are gonna host your ghost app on heroku.\n\nWill work with version higher than `0.6.0` of Ghost!\n\n### What's is new in 2.x\n - Rewritten to add support for Ghost 2.x.\n\n## Installation\n### Via NPM\n\n- cd into Ghost's `current` directory and install `ghost-google-drive` storage module\n\n  ```\n  cd current\n  npm install ghost-google-drive\n  ```\n- cd back to the root directory and make the storage folder if it doesn't exist yet\n\n  ```\n  mkdir content/adapters/storage\n  ```\n- Copy the module into the right location\n\n  ```\n  cp -vR current/node_modules/ghost-google-drive content/adapters/storage/ghost-google-drive\n  ```\n- Install package dependencies\n\n  ```\n  cd content/adapters/storage/ghost-google-drive\n  npm install\n  ```\n\n\n### Via Git\n\nIn order to replace the storage module, the basic requirements are:\n\n- Clone this repo to `/content/adapters/storage`. Please create the directories if not there.\n\n  ```\n  cd [path/to/ghost]/content/adapters/storage\n  git clone https://github.com/robincsamuel/ghost-google-drive.git\n  ```\n- Install dependencies\n\n  ```\n  cd ghost-google-drive\n  npm install\n  ```\n\n\n## Configuration\n\nAdd the following to your environment configuration, `config.development.json` if development.\n\n- authType: googleAuth\n```js\n\"storage\": {\n  \"active\": \"ghost-google-drive\",\n  \"ghost-google-drive\": {\n    \"authType\": \"googleAuth\",\n    \"key\": {\n            \"private_key_id\": \"YOUR PRIVATE KEY ID\",\n            \"private_key\": \"YOUR PRIVATE KEY\",\n            \"client_email\": \"YOUR CLIENT EMAIL\",\n            \"client_id\": \"YOUR CLIENT ID\"\n     },\n     \"folderId\": \"xxxxx\"\n  }\n},\n\n```\n- authType: jwt **default**\n```js\n\"storage\": {\n  \"active\": \"ghost-google-drive\",\n  \"ghost-google-drive\": {\n    \"authType\": \"jwt\",\n    \"key\": {\n            \"private_key_id\": \"YOUR PRIVATE KEY ID\",\n            \"private_key\": \"YOUR PRIVATE KEY\",\n            \"client_email\": \"YOUR CLIENT EMAIL\",\n            \"client_id\": \"YOUR CLIENT ID\"\n     }\n  }\n},\n\n```\nYou just have to replace the key object with your json array generated by google console.\n\nIf you are not sure about how to get google ccredentials, please read below.\n\n## Create OAuth credentials\n\n- Login to [google console](https://code.google.com/apis/console)\n\n- Create a new project from the top right dropdown\n  ![new project](http://i.imgur.com/fitDSc9.png)\n\n- Click on `Enable APIS and Services`\n  ![enable_apis](http://i.imgur.com/sm9O48v.png)\n\n- Search `Google Drive`\n  ![enable_apis](http://i.imgur.com/vyHhaqu.png)\n\n- Enable `Google Drive API`\n  ![enable api](http://i.imgur.com/VoF3yLu.png)\n\n- Click on the `Create Credentials` button.\n  ![enable api](http://i.imgur.com/qHbcl0F.png)\n\n- Add information for credentialing.\n  ![enable api](http://i.imgur.com/WMY2mFt.png)\n\n- You can skip the OAuth consent screen setup.\n  ![enable api](http://i.imgur.com/3mRqIuq.png)\n\n- From the credentials section, create a new `Service Account Key`\n  ![enable api](http://i.imgur.com/PE0MMw7.png)\n\n- Enter the account info, choose `JSON` for key type and download the file.\n  ![enable api](http://i.imgur.com/QF0wSNn.png)\n\n- You can copy the contents of json file to the config file (under `storage.ghost-google-drive.key`) as shown in the `Configuration` step.\n  ![enable api](https://i.imgur.com/pPr69gn.png)\n\n---\nThis part below is only for authType: `googleAuth`\n- Create the folder in your personal Google Drive\n  ![](https://imgur.com/zEBqjSw.png)\n  ![](https://imgur.com/hGvp9U9.png)\n- Invite the service email to this folder and set this account th editor\n  ![](https://imgur.com/Stnh6JM.png)\n- Copy the folder's web url to get the folder id and paste to `storage.ghost-google-drive.folderId`\n  ![](https://imgur.com/TiUyFoG.png)\n\n---\n\n- Restart Ghost\n\n## Managing Google Drive\nIf you've followed the steps above, you just created a service account. A service account can't be logged into like a normal Google Drive account. Fret not! [We've built a solution to help.](https://github.com/behoyh/google-drive-ui)\n\n## License\n\nRead [LICENSE](LICENSE)\n\nFeel free to create an [issue](https://github.com/robincsamuel/ghost-google-drive/issues), in case of troubles!\n\nThanks to [Minwe](https://github.com/Minwe). I was following your package, even this readme!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobincsamuel%2Fghost-google-drive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobincsamuel%2Fghost-google-drive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobincsamuel%2Fghost-google-drive/lists"}