{"id":15382242,"url":"https://github.com/jamowei/senv","last_synced_at":"2026-03-17T20:04:08.331Z","repository":{"id":144201142,"uuid":"110351918","full_name":"jamowei/senv","owner":"jamowei","description":"spring cloud config client written in go for non java applications","archived":false,"fork":false,"pushed_at":"2018-06-08T15:59:34.000Z","size":44,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T09:33:02.546Z","etag":null,"topics":["configuration","configuration-management","golang","spring-cloud"],"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/jamowei.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":"2017-11-11T14:29:09.000Z","updated_at":"2022-12-19T21:09:19.000Z","dependencies_parsed_at":"2023-06-18T12:05:14.462Z","dependency_job_id":null,"html_url":"https://github.com/jamowei/senv","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jamowei/senv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Fsenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Fsenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Fsenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Fsenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jamowei","download_url":"https://codeload.github.com/jamowei/senv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jamowei%2Fsenv/sbom","scorecard":{"id":504718,"data":{"date":"2025-08-11","repo":{"name":"github.com/jamowei/senv","commit":"61a75e42b96d94c05ae60eedea29babe77a7d384"},"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.1.0 not signed: https://api.github.com/repos/jamowei/senv/releases/9570092","Warn: release artifact v0.0.3 not signed: https://api.github.com/repos/jamowei/senv/releases/8870319","Warn: release artifact v0.0.2 not signed: https://api.github.com/repos/jamowei/senv/releases/8593312","Warn: release artifact v0.1.0 does not have provenance: https://api.github.com/repos/jamowei/senv/releases/9570092","Warn: release artifact v0.0.3 does not have provenance: https://api.github.com/repos/jamowei/senv/releases/8870319","Warn: release artifact v0.0.2 does not have provenance: https://api.github.com/repos/jamowei/senv/releases/8593312"],"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":"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"}}]},"last_synced_at":"2025-08-19T23:00:15.352Z","repository_id":144201142,"created_at":"2025-08-19T23:00:15.352Z","updated_at":"2025-08-19T23:00:15.352Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["configuration","configuration-management","golang","spring-cloud"],"created_at":"2024-10-01T14:30:31.606Z","updated_at":"2026-03-17T20:04:08.312Z","avatar_url":"https://github.com/jamowei.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Senv\n\n[![License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](https://github.com/jamowei/senv/blob/master/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/jamowei/senv)](https://goreportcard.com/report/github.com/jamowei/senv)\n[![Build Status](https://travis-ci.org/jamowei/senv.svg?branch=master)](https://travis-ci.org/jamowei/senv)\n[![Coverage Status](https://coveralls.io/repos/github/jamowei/senv/badge.svg?branch=master)](https://coveralls.io/github/jamowei/senv?branch=master)\n\nA fast Spring cloud-config-client written in Go.\n \nIt fetches properties from a Spring cloud-config-server\nand make them available via system environment variables\nFor more information on spring cloud config take a look [here](https://cloud.spring.io/spring-cloud-config/).\n\n# Install\n\nYou can get the latest binary using Go:\n\n`\u003e go get -u github.com/jamowei/senv/senv`\n\nor download released binary from [here](https://github.com/jamowei/senv/releases/latest).\n\n# Example\n\nYour spring config server is running on http://127.0.0.1:8888/.\n\nyour *application.yml* file in config repo is:\n```yaml\n# general\ndescription: Spring Config Server\nuser: admin\nworkdir: /var/work\n---\n# test environment\nspring:\n  profiles:\n    active: dev\ndb:\n  user: ${user}\n  password: test123\n---\n# production environment\nspring:\n  profiles:\n    active: prod\ndb:\n  user: ${user}\n  password: prod123\n```\n\nyour own application file *myapp.yml* in config repo:\n```yaml\nfile:\n  input: ${workdir}/input.txt\n  output: ${workdir}/output.txt\n```\n\nand you have a static file \"conf.xml\" with variables:\n```xml\n\u003cconfiguration\u003e\n  \u003cuser\u003e${db.user}\u003c/user\u003e\n  \u003cpass\u003e${db.password}\u003c/pass\u003e\n\u003c/configuration\u003e\n```\n\nthen you can start your application *myapp* like the following:\n* with development settings:\n    ```\n    \u003e senv env -n myapp -p dev \\n\n      Fetching config from server at: http://127.0.0.1:8888/myapp/dev/master\n      Located environment: name=\"myapp\", profiles=[dev], label=\"master\", version=29374923859338549, state=\"\"\n    \u003e echo \"$DB_USER:$DB_PASSWORD\"             // prints: admin:test123\n    \u003e myapp -user $DB_USER -pass $DB_PASSWORD -in $FILE_INPUT -out $FILE_OUTPUT\n      ...\n    ```\n* with production settings:\n    ```\n    \u003e senv env -n myapp -p prod \\n\n      Fetching config from server at: http://127.0.0.1:8888/myapp/prod/master\n      Located environment: name=\"myapp\", profiles=[prod], label=\"master\", version=29374923859338549, state=\"\"\n    \u003e echo \"$DB_USER:$DB_PASSWORD\"             // prints: admin:prod123\n    \u003e myapp -user $DB_USER -pass $DB_PASSWORD -in $FILE_INPUT -out $FILE_OUTPUT\n      ...\n    ```\n* getting the \"conf.xml\":\n    ```\n    \u003e senv file -n myapp -p prod conf.xml \\n\n      Fetching file \"conf.xml\" from server at: http://127.0.0.1:8888/myapp/prod/master/conf.xml\n    \u003e cat conf.xml                          //prints: \u003cconfiguration\u003e\n                                                        \u003cuser\u003eadmin\u003c/user\u003e\n                                                        \u003cpass\u003eprod123\u003c/pass\u003e\n                                                      \u003c/configuration\u003e\n    \u003e myapp -conf conf.xml\n      ...\n    ```\n    \n# Help\n\n```\n  \u003e senv --help \n    Senv is a fast native config-client for a\n    spring-cloud-config-server written in Go\n    \n    Usage:\n      senv [command]\n    \n    Available Commands:\n      env         Fetches properties and sets them as environment variables\n      file        Receives static file(s)\n      help        Help about any command\n    \n    Flags:\n      -h, --help               help for senv\n          --host string        configserver host (default \"127.0.0.1\")\n      -l, --label string       config-repo label to be used (default \"master\")\n      -n, --name string        spring.application.name (default \"application\")\n          --port string        configserver port (default \"8888\")\n      -p, --profiles strings   spring.active.profiles (default [default])\n          --version            version for senv\n    \n    Use \"senv [command] --help\" for more information about a command.\n```\n# ToDo's\n\n* https support with own ca\n* customizable http header for vault and basic auth\n* 100% code coverage\n* ...\n\n# Contributing\n\n1. Fork it\n2. Download your fork to your PC (`git clone https://github.com/your_username/cobra \u0026\u0026 cd cobra`)\n3. Create your feature branch (`git checkout -b my-new-feature`)\n4. Make changes and add them (`git add .`)\n5. Commit your changes (`git commit -m 'Add some feature'`)\n6. Push to the branch (`git push origin my-new-feature`)\n7. Create new pull request\n\n# License\n\nSenv is released under the MIT license. See [LICENSE](https://github.com/jamowei/senv/blob/master/LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamowei%2Fsenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjamowei%2Fsenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjamowei%2Fsenv/lists"}