{"id":37174129,"url":"https://github.com/go-pogo/env","last_synced_at":"2026-01-14T20:20:51.637Z","repository":{"id":57712864,"uuid":"501644613","full_name":"go-pogo/env","owner":"go-pogo","description":"Package env reads and parses environment variables from various sources.","archived":false,"fork":false,"pushed_at":"2025-10-01T09:28:50.000Z","size":481,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T11:29:07.209Z","etag":null,"topics":["decode","dotenv","encode","env","go","golang","marhsal","parser","unmarshal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/go-pogo.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["roeldev"]}},"created_at":"2022-06-09T12:31:15.000Z","updated_at":"2025-10-01T09:28:54.000Z","dependencies_parsed_at":"2024-01-14T09:24:57.085Z","dependency_job_id":"9b0825ca-a0a0-4d83-802d-00f327663a2b","html_url":"https://github.com/go-pogo/env","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/go-pogo/env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Fenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Fenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Fenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Fenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-pogo","download_url":"https://codeload.github.com/go-pogo/env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-pogo%2Fenv/sbom","scorecard":{"id":432361,"data":{"date":"2025-08-11","repo":{"name":"github.com/go-pogo/env","commit":"ffd0afe00da35c70278e042524d9fda53651513d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"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":"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":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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/lint.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/lint.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/lint.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/lint.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/go-pogo/env/test.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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":"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: BSD 3-Clause \"New\" or \"Revised\" 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 'main'"],"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":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"}}]},"last_synced_at":"2025-08-19T03:40:48.411Z","repository_id":57712864,"created_at":"2025-08-19T03:40:48.411Z","updated_at":"2025-08-19T03:40:48.411Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["decode","dotenv","encode","env","go","golang","marhsal","parser","unmarshal"],"created_at":"2026-01-14T20:20:50.726Z","updated_at":"2026-01-14T20:20:51.617Z","avatar_url":"https://github.com/go-pogo.png","language":"Go","funding_links":["https://github.com/sponsors/roeldev"],"categories":[],"sub_categories":[],"readme":"env\n===\n[![Latest release][latest-release-img]][latest-release-url]\n[![Build status][build-status-img]][build-status-url]\n[![Go Report Card][report-img]][report-url]\n[![Documentation][doc-img]][doc-url]\n\n[latest-release-img]: https://img.shields.io/github/release/go-pogo/env.svg?label=latest\n\n[latest-release-url]: https://github.com/go-pogo/env/releases\n\n[build-status-img]: https://github.com/go-pogo/env/actions/workflows/test.yml/badge.svg\n\n[build-status-url]: https://github.com/go-pogo/env/actions/workflows/test.yml\n\n[report-img]: https://goreportcard.com/badge/github.com/go-pogo/env\n\n[report-url]: https://goreportcard.com/report/github.com/go-pogo/env\n\n[doc-img]: https://godoc.org/github.com/go-pogo/env?status.svg\n\n[doc-url]: https://pkg.go.dev/github.com/go-pogo/env\n\n\nPackage `env` reads and parses environment variables from various sources. \nIt supports unmarshaling into any type and (over)loading the variables into the \nsystem's environment.\n\nIncluded features are:\n* Reading environment variables from various sources;\n* Decoding environment variables into any type;\n* Encoding environment variables from any type;\n* Loading and overloading into the system's environment variables.\n\n\u003chr\u003e\n\n```sh\ngo get github.com/go-pogo/env\n```\n\n```sh\nimport \"github.com/go-pogo/env\"\n```\n\n## Usage\n\nBelow example demonstrates how to decode system environment variables into a struct.\n\n```go\npackage main\n\nimport (\n    \"github.com/davecgh/go-spew/spew\"\n    \"github.com/go-pogo/env\"\n    \"time\"\n)\n\nfunc main() {\n    type Config struct {\n        Foo     string\n        Timeout time.Duration `default:\"10s\"`\n    }\n\n    var conf Config\n    if err := env.NewDecoder(env.System()).Decode(\u0026conf); err != nil {\n        panic(err)\n    }\n\n    spew.Dump(conf)\n    // Output:\n    // (env.Config) {\n    //  Foo: (string) \"\",\n    //  Timeout: (time.Duration) 10s\n    // }\n}\n```\n\n## Usage with `dotenv`\n\nThis example reads .env files from the _example_ directory and decodes the found variables into a struct.\n```go\npackage main\n\nimport (\n    \"github.com/davecgh/go-spew/spew\"\n    \"github.com/go-pogo/env\"\n    \"github.com/go-pogo/env/dotenv\"\n    \"time\"\n)\n\nfunc main() {\n    type Config struct {\n        Foo     string\n        Timeout time.Duration `default:\"10s\"`\n    }\n\n    var conf Config\n    if err := env.NewDecoder(dotenv.Read(\"example\", dotenv.None)).Decode(\u0026conf); err != nil {\n        panic(err)\n    }\n\n    spew.Dump(conf)\n    // Output:\n    // (dotenv.Config) {\n    //  Foo: (string) (len=3) \"bar\",\n    //  Timeout: (time.Duration) 2s\n    // }\n}\n```\n\n## Documentation\n\nAdditional detailed documentation is available at [pkg.go.dev][doc-url]\n\n## Created with\n\n\u003ca href=\"https://www.jetbrains.com/?from=go-pogo\" target=\"_blank\"\u003e\u003cimg src=\"https://resources.jetbrains.com/storage/products/company/brand/logos/GoLand_icon.png\" width=\"35\" /\u003e\u003c/a\u003e\n\n## License\n\nCopyright © 2020-2025 [Roel Schut](https://roelschut.nl). All rights reserved.\n\nThis project is governed by a BSD-style license that can be found in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-pogo%2Fenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-pogo%2Fenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-pogo%2Fenv/lists"}