{"id":16406980,"url":"https://github.com/arroyo/grutil","last_synced_at":"2025-11-09T05:04:27.511Z","repository":{"id":57617308,"uuid":"233355244","full_name":"arroyo/grutil","owner":"arroyo","description":"Headless CMS CLI","archived":false,"fork":false,"pushed_at":"2023-12-01T15:01:10.000Z","size":6357,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-09T05:04:09.734Z","etag":null,"topics":["backup","cli","go","golang","graphcms"],"latest_commit_sha":null,"homepage":"","language":"Go","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/arroyo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-12T07:33:34.000Z","updated_at":"2022-09-04T18:21:36.000Z","dependencies_parsed_at":"2024-06-20T17:26:00.933Z","dependency_job_id":"e3d78604-ec6b-4f73-9b91-fed6a0043827","html_url":"https://github.com/arroyo/grutil","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/arroyo/grutil","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arroyo%2Fgrutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arroyo%2Fgrutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arroyo%2Fgrutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arroyo%2Fgrutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arroyo","download_url":"https://codeload.github.com/arroyo/grutil/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arroyo%2Fgrutil/sbom","scorecard":{"id":208491,"data":{"date":"2025-08-11","repo":{"name":"github.com/arroyo/grutil","commit":"715a422756f004bfa5a466e14fcbbb625598ad36"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: docker/Dockerfile:1: pin your Docker image by updating golang:alpine to golang:alpine@sha256:c8c5f95d64aa79b6547f3b626eb84b16a7ce18a139e3e9ca19a8c078b85ba80d","Warn: goCommand not pinned by hash: docker/Dockerfile:5","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 goCommand 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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8","Warn: Project is vulnerable to: GO-2021-0113 / GHSA-ppp9-7jff-5vj2","Warn: Project is vulnerable to: GO-2022-1059 / GHSA-69ch-w2m2-3vjp"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T00:16:56.411Z","repository_id":57617308,"created_at":"2025-08-17T00:16:56.412Z","updated_at":"2025-08-17T00:16:56.412Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283459954,"owners_count":26839469,"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-11-09T02:00:05.828Z","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":["backup","cli","go","golang","graphcms"],"created_at":"2024-10-11T06:11:41.147Z","updated_at":"2025-11-09T05:04:27.480Z","avatar_url":"https://github.com/arroyo.png","language":"Go","readme":"# Grutil\n\nA helpful GraphQL utility\n\nPlease log any issues to Github issues.\n\nThe current version works with [GraphCMS](https://graphcms.com/) and downloads schemas, content, backs up your project to disk (including asset files) and allows simple rendering.\n\n**Functions**\n* Download\n* Backup\n* Render\n\n@note this project was originally called cmsutil.  It was later changed to avoid namespace collisions in some linux environments as there is a cryptography packaged called cmsutil.  If you are currently running the old cmsutil please delete and reintsall grutil in its place.\n\n## Install\n\nOnce you have [Go installed](https://golang.org/doc/install) on your target environment, simply run the following to install\n\n```\ngo get github.com/arroyo/grutil\n```\n\n## Config\n\nIn your home directory create a folder called \".grutil\" and put a text file called \"config.yaml\" in it.\n\nThere is an example config file in the repo.  \n\nIt has been tested with YAML, but it is possible to use JSON or TOML (use the extensions .json and .toml respectively).\n\nCMS_API_URL must start with https:// or http://\n\n### Envars\n\nYou can override the settings in your yaml config with the following environment variables\n\nCMS_API_URL\n\nCMS_API_KEY\n\n## Usage\n\nGet a copy of your schema or content with the download command. Backup your entire project with the backup command.  Render a GraphQL query against a template.\n\nYou can add optional --verbose and --debug flags to any command.  Verbose will add more details of what is happening as the program runs.  Debug is useful if you are having issues and want to see what API calls are happening behind the scenes.  Debug will show the GraphQL query being made and the API response body.\n\n### Download schema models and enumerations\n\n```shell-script\ngrutil download schemas --verbose\n```\n\n### Download node content and assets\n\n```shell-script\ngrutil download content\n```\n\n### Backup your site\n\ndownload both schemas and content into a timestamped folder\n\n```shell-script\ngrutil backup\n```\n\n### Render content\n\nQuery content with GraphQL and render it against a go template.\n\n```shell-script\ngrutil render --template json.txt --query \"query MyQuery { faq(where: {id: \\\"cknmrjsvw7yd\\\"}) { id title publishedAt updatedAt } }\"\n```\n\n### Get help\n\nGet general help or specific help with a command using.\n\n```shell-script\ngrutil help\ngrutil download -h\ngrutil backup -h\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farroyo%2Fgrutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farroyo%2Fgrutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farroyo%2Fgrutil/lists"}