{"id":48927989,"url":"https://github.com/flemay/envvars","last_synced_at":"2026-04-17T08:01:02.534Z","repository":{"id":47183829,"uuid":"120357496","full_name":"flemay/envvars","owner":"flemay","description":"Give your environment variables the love they deserve.","archived":false,"fork":false,"pushed_at":"2025-05-16T13:07:24.000Z","size":744,"stargazers_count":21,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-16T14:27:02.757Z","etag":null,"topics":["12-fac","docker","docker-image","environment-variables","parameters"],"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/flemay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2018-02-05T20:26:50.000Z","updated_at":"2025-05-16T13:07:27.000Z","dependencies_parsed_at":"2022-08-12T13:20:12.254Z","dependency_job_id":null,"html_url":"https://github.com/flemay/envvars","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/flemay/envvars","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flemay%2Fenvvars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flemay%2Fenvvars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flemay%2Fenvvars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flemay%2Fenvvars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flemay","download_url":"https://codeload.github.com/flemay/envvars/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flemay%2Fenvvars/sbom","scorecard":{"id":403034,"data":{"date":"2025-08-11","repo":{"name":"github.com/flemay/envvars","commit":"5910a7766db6e0732d1ddb85b9b42ed17c089253"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.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":"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":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":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.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":"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":"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/release.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/flemay/envvars/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/flemay/envvars/test.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned 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":"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":"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":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":"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-18T20:31:33.386Z","repository_id":47183829,"created_at":"2025-08-18T20:31:33.392Z","updated_at":"2025-08-18T20:31:33.392Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31920518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","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":["12-fac","docker","docker-image","environment-variables","parameters"],"created_at":"2026-04-17T08:00:25.307Z","updated_at":"2026-04-17T08:01:02.516Z","avatar_url":"https://github.com/flemay.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Envvars\n\n[![Go Reference][linkProjectGoReferenceBadge]][linkProjectGoReference]\n[![License][linkLicenseBadge]][linkLicense]\n[![Go Report Card][linkGoReportCardProjectBadge]][linkGoReportCardProject]\n[![GitHub Tag][linkProjectGitHubTagBadge]][linkProjectGitHubReleases]\n[![Build Status][linkGitHubActionsProjectTestBadge]][linkGitHubActionsProject]\n[![Build Status][linkGitHubActionsProjectReleaseBadge]][linkGitHubActionsProject]\u003cbr\u003e\n[![Docker Hub][linkDockerHubProjectBadge]][linkDockerHubProject]\n[![Docker Image Version][linkDockerHubProjectImageVersion]][linkDockerHubProject]\n[![Docker Hub Pulls Badge][LinkDockerHubProjectPullsBadge]][linkDockerHubProject]\n\n\u003cbr\u003e\n\u003cp align=\"left\"\u003e\u003cimg src=\"./docs/envvars_gopher.png\" width=\"260\"\u003e\u003c/p\u003e\n\nGive your environment variables the love they deserve.\n\n## Overview\n\nEnvvars, a command line tool written in Go, provides a way to describe the environment variables of a project and ensures they are defined before testing, building, and deploying. It also generates an env file to be used by other applications such as Docker and Compose.\n\n## Installation\n\n```bash\n# install latest release\n$ go install github.com/flemay/envvars@latest\n\n# install from source\n$ git clone https://github.com/flemay/envvars\n$ cd envvars\n$ go install ./...\n\n# or use the tiny docker image (\u003c 5 MB)\n# example for version 0.0.8\n$ docker run --rm flemay/envvars:0.0.8 --help\n```\n\n## Usage\n\n```bash\n# create a declaration file envvars.yml\n# envvars:\n#   - name: ECHO\n#     example: Hello World\n$ envvars init\n\n# validate the declaration file if it contains errors\n$ envvars validate\n\n# ensure the environment variables comply with the declaration file. The declaration file is also validated.\n$ envvars ensure\n# Error: environment variable ECHO is not defined\n# set ECHO with empty value\n$ export ECHO=\"\"\n$ envvars ensure\n# Error: environment variable ECHO is empty\n# set ECHO with non-empty value\n$ export ECHO=\"helloworld\"\n$ envvars ensure\n\n# create an env file\n$ envvars envfile\n$ cat .env\n# ECHO\n\n# create an env file with the example value\n$ envvars envfile -overwrite -example\n$ cat .env\n# ECHO=Hello World\n\n# explore\n$ envvars --help\n```\n\n## Declaration File\n\nThe declaration file (written in [YAML][linkYAML]) is the core of Envvars. It declares all the environment variables used by a project.\n\nEnvvars is looking for the declaration file `envvars.yml` by default. A different file can be passed with the flag `-f path/to/declarationfile.yml`.\n\n```yml\ntags:\n  - name: deploy\n    desc: tag used when deploying\n\nenvvars:\n  - name: ENV\n    desc: Application stage (dev, qa, preprod, prod)\n    tags:\n      - deploy\n    optional: true\n    example: dev\n```\n\n| Field            |      Type      | Required | Description                                                                                                                        |\n|------------------|:--------------:|:--------:|------------------------------------------------------------------------------------------------------------------------------------|\n| tags             |      list      |    no    | List of tags to be used for targeting a subset of environment variables                                                            |\n| tags.name        |     string     |    yes   | Unique tag name                                                                                                                    |\n| tags.desc        |     string     |    no    | Meaningful description of the tag                                                                                                  |\n| envvars          |      list      |    yes   | List of environment variables                                                                                                      |\n| envvars.name     |     string     |    yes   | Unique environment variable name                                                                                                   |\n| envvars.desc     |     string     |    no    | Meaningful description of the environment variable                                                                                 |\n| envvars.tags     | list of string |    no    | List of tags for the environment variable. Each tag must be declared in the \"tags\" field.                                          |\n| envvars.optional |      bool      |    no    | Allows the environment variable to be empty or not defined. It is best to avoid it unless your application accepts an empty value. |\n| envvars.example  |     string     |    no    | Example value for the environment variable.                                                                                        |\n\n## Guidelines\n\n### Documentation is your best friend\n\nThe field `desc` should be used if the name of the tag or environment variable is not self-explanatory. This helps anyone new to the project, or juggling with many projects at once, to understand every environment variable, and tag.\n\n## The 3 Musketeers\n\nEnvvars fits nicely with the [3 Musketeers][link3Musketeers] for managing the environment variables used by an application.\n\n## Contributing\n\nContributions are greatly appreciated. Everyone can contribute and [here][linkContributing] are different ways.\n\n## Releases and current state\n\nEnvvars is in its early stage and its API is not stable. Envvars will be production ready when it reaches `v1.0.0`.\n\nSee [Automation \u0026 Configuration][linkAutomationAndConfiguration] for more details.\n\n## Stargazers over time\n\n[![Stargazers over time][linkProjectStargazersSVG]][linkProjectStargazers]\n\n## License\n\n[MIT][linkLicense]\n\n\n[linkAutomationAndConfiguration]: ./docs/automation_and_configuration.md\n[linkLicense]: LICENSE\n[linkContributing]: ./CONTRIBUTING.md\n\n[linkProjectGoReferenceBadge]: https://pkg.go.dev/badge/github.com/flemay/envvars.svg\n[linkProjectGoReference]: https://pkg.go.dev/github.com/flemay/envvars\n[linkYAML]: http://yaml.org/spec/1.2/spec.html\n[link3Musketeers]: https://github.com/flemay/3musketeers\n[linkGitHubActionsProjectTestBadge]: https://github.com/flemay/envvars/workflows/Test/badge.svg\n[linkGitHubActionsProjectReleaseBadge]: https://github.com/flemay/envvars/workflows/Release/badge.svg\n[linkGitHubActionsProject]: https://github.com/flemay/envvars/actions\n[linkDockerHubProjectBadge]: https://img.shields.io/badge/repository-dockerhub-blue.svg\n[linkDockerHubProject]: https://hub.docker.com/r/flemay/envvars\n[linkDockerHubProjectImageVersion]: https://img.shields.io/docker/v/flemay/envvars?label=docker%20image%20version\u0026sort=semver\n[LinkDockerHubProjectPullsBadge]: https://img.shields.io/docker/pulls/flemay/envvars\n[linkDockerHub]: https://hub.docker.com\n[linkGoReportCardProjectBadge]: https://goreportcard.com/badge/github.com/flemay/envvars\n[linkGoReportCardProject]: https://goreportcard.com/report/github.com/flemay/envvars\n[linkLicenseBadge]: https://img.shields.io/dub/l/vibe-d.svg\n[linkProjectGitHubTagBadge]: https://img.shields.io/github/tag/flemay/envvars.svg\n[linkProjectGitHubReleases]: https://github.com/flemay/envvars/releases\n[linkProjectStargazersSVG]: https://starchart.cc/flemay/envvars.svg\n[linkProjectStargazers]: https://starchart.cc/flemay/envvars\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflemay%2Fenvvars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflemay%2Fenvvars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflemay%2Fenvvars/lists"}