{"id":31904163,"url":"https://github.com/cloudfoundry-community/vcap-squash","last_synced_at":"2025-10-13T13:47:48.140Z","repository":{"id":57746168,"uuid":"58778022","full_name":"cloudfoundry-community/vcap-squash","owner":"cloudfoundry-community","description":"Turn VCAP_SERVICES into flat env vars","archived":false,"fork":false,"pushed_at":"2016-06-04T02:06:37.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-20T17:35:11.216Z","etag":null,"topics":["cli-utilities","cloud-foundry","environment-variables","golang"],"latest_commit_sha":null,"homepage":null,"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/cloudfoundry-community.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":"2016-05-13T23:19:29.000Z","updated_at":"2024-02-09T14:24:02.000Z","dependencies_parsed_at":"2022-09-01T20:51:28.498Z","dependency_job_id":null,"html_url":"https://github.com/cloudfoundry-community/vcap-squash","commit_stats":null,"previous_names":["joshq00/vcap-squash"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/vcap-squash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fvcap-squash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fvcap-squash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fvcap-squash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fvcap-squash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/vcap-squash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fvcap-squash/sbom","scorecard":{"id":292656,"data":{"date":"2025-08-11","repo":{"name":"github.com/cloudfoundry-community/vcap-squash","commit":"eb9f61c0ebf872594deb91c3742d86bd54058267"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/15 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":-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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.1 not signed: https://api.github.com/repos/cloudfoundry-community/vcap-squash/releases/3242570","Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/cloudfoundry-community/vcap-squash/releases/3226916","Warn: release artifact v0.1.1 does not have provenance: https://api.github.com/repos/cloudfoundry-community/vcap-squash/releases/3242570","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/cloudfoundry-community/vcap-squash/releases/3226916"],"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":"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-17T18:40:47.559Z","repository_id":57746168,"created_at":"2025-08-17T18:40:47.559Z","updated_at":"2025-08-17T18:40:47.559Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015339,"owners_count":26085685,"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-13T02:00:06.723Z","response_time":61,"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":["cli-utilities","cloud-foundry","environment-variables","golang"],"created_at":"2025-10-13T13:47:41.699Z","updated_at":"2025-10-13T13:47:48.135Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vcap-squash [![Build Status](https://travis-ci.org/cloudfoundry-community/vcap-squash.svg?branch=master)](https://travis-ci.org/cloudfoundry-community/vcap-squash)\nTurn VCAP_SERVICES into flat env vars\n\n## Download\nVisit the [releases](https://github.com/cloudfoundry-community/vcap-squash/releases/latest) page\nand download the binary for your system\n\n## Usage\nThis application will parse the `VCAP_SERVICES` environment variable and output the unix exports of the flattened version.\n\nFlattened vcap environment variables start with the service name and append `_` for each nested credential.\nFor example:\n```sh\n$ VCAP_SERVICES='{ \"user-provided\": [ {\n  \"name\": \"myservice\",\n  \"credentials\": {\n    \"url\": \"myservice.com\",\n    \"username\": \"josh\",\n    \"password\": \"secret\",\n    \"nested\": {\n      \"key\": \"value\",\n      \"number\": 123\n    }\n  }\n} ] }' ./vcap-squash\n\nexport MYSERVICE_URL=\"myservice.com\"\nexport MYSERVICE_USERNAME=\"josh\"\nexport MYSERVICE_PASSWORD=\"secret\"\nexport MYSERVICE_NESTED_KEY=\"value\"\nexport MYSERVICE_NESTED_NUMBER=123\n```\n\nTo set your environment variables using this output, use\n```sh\neval \"$(./vcap-squash)\"\n```\n\n### In Cloud Foundry\nAdd the proper `vcap-squash` binary to your project root (depending on cf stack)\n\nCreate a `.profile.d/setenv.sh` file to push along with your repo\n```sh\n#!/bin/sh\neval $(./vcap-squash)\n```\n\n## Development\nTo run all basic tasks, use\n```sh\n$ make\n```\n\n### Dependencies\nTo download needed libraries:\n```sh\n$ make deps\n```\n\n### Test\nTo run the test suite, use\n```sh\n$ make test\n```\n\nRun the test suite in development/watch mode:\n```sh\n$ make watch\n```\n\n### Build local\nTo build a binary using your go env:\n```sh\n$ make build-local\n```\n\n### Build all\nBuild the binary for all systems:\n```sh\n$ make build\n```\n_the binaries will be placed in `./out`_\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fvcap-squash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fvcap-squash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fvcap-squash/lists"}