{"id":13684241,"url":"https://github.com/kreuzwerker/envplate","last_synced_at":"2026-03-17T16:01:14.497Z","repository":{"id":23253591,"uuid":"26611683","full_name":"kreuzwerker/envplate","owner":"kreuzwerker","description":"Docker-friendly trivial templating for configuration files using environment keys","archived":false,"fork":false,"pushed_at":"2024-05-02T14:46:52.000Z","size":148,"stargazers_count":341,"open_issues_count":15,"forks_count":44,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-12-26T17:46:37.663Z","etag":null,"topics":["golang","hacktoberfest"],"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/kreuzwerker.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":"2014-11-13T22:47:54.000Z","updated_at":"2025-12-03T15:27:55.000Z","dependencies_parsed_at":"2024-01-14T17:06:16.922Z","dependency_job_id":"b6cb4b73-e7bc-4c70-80a6-eb55d1ffc6e6","html_url":"https://github.com/kreuzwerker/envplate","commit_stats":null,"previous_names":["yawn/envplate"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/kreuzwerker/envplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreuzwerker%2Fenvplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreuzwerker%2Fenvplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreuzwerker%2Fenvplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreuzwerker%2Fenvplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kreuzwerker","download_url":"https://codeload.github.com/kreuzwerker/envplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kreuzwerker%2Fenvplate/sbom","scorecard":{"id":569785,"data":{"date":"2025-08-11","repo":{"name":"github.com/kreuzwerker/envplate","commit":"ec00ede3ca03c6bbbe0412bf4b84eacdcdabba11"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"Code-Review","score":2,"reason":"Found 5/17 approved changesets -- score normalized to 2","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":"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":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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","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":"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/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/kreuzwerker/envplate/test.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 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":"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.3 not signed: https://api.github.com/repos/kreuzwerker/envplate/releases/92514834","Warn: release artifact v1.0.2 not signed: https://api.github.com/repos/kreuzwerker/envplate/releases/54066043","Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/kreuzwerker/envplate/releases/51440365","Warn: release artifact 1.0.0-RC1 not signed: https://api.github.com/repos/kreuzwerker/envplate/releases/2644272","Warn: release artifact v0.0.8 not signed: https://api.github.com/repos/kreuzwerker/envplate/releases/1526247","Warn: release artifact v1.0.3 does not have provenance: https://api.github.com/repos/kreuzwerker/envplate/releases/92514834","Warn: release artifact v1.0.2 does not have provenance: https://api.github.com/repos/kreuzwerker/envplate/releases/54066043","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/kreuzwerker/envplate/releases/51440365","Warn: release artifact 1.0.0-RC1 does not have provenance: https://api.github.com/repos/kreuzwerker/envplate/releases/2644272","Warn: release artifact v0.0.8 does not have provenance: https://api.github.com/repos/kreuzwerker/envplate/releases/1526247"],"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":"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":"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 24 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-20T15:59:47.930Z","repository_id":23253591,"created_at":"2025-08-20T15:59:47.931Z","updated_at":"2025-08-20T15:59:47.931Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30626901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T14:16:03.965Z","status":"ssl_error","status_checked_at":"2026-03-17T14:16:03.380Z","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":["golang","hacktoberfest"],"created_at":"2024-08-02T14:00:31.403Z","updated_at":"2026-03-17T16:01:14.451Z","avatar_url":"https://github.com/kreuzwerker.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Envplate\n\n[![Release](https://img.shields.io/github/v/release/kreuzwerker/envplate)](https://github.com/kreuzwerker/envplate/releases)\n[![Build Status](https://github.com/kreuzwerker/envplate/workflows/build/badge.svg)](https://github.com/kreuzwerker/envplate/actions)\n[![Documentation](https://godoc.org/github.com/kreuzwerker/envplate?status.svg)](http://godoc.org/github.com/kreuzwerker/envplate) \n[![Go Report Card](https://goreportcard.com/badge/github.com/kreuzwerker/envplate)](https://goreportcard.com/report/github.com/kreuzwerker/envplate) \n\nTrivial templating for configuration files using environment keys. References to such keys are declared in arbitrary config files either as:\n\n1. `${key}` or\n* `${key:-default value}`\n\nEnvplate (`ep`) parses arbitrary configuration files (using glob patterns) and replaces all references with values from the environment or with default values (if given). These values replace the keys *inline* (= the files will be changed).\n\nFailure to resolve the supplied glob pattern(s) to at least one file results in an error.\n\nOptionally, `ep` can:\n\n* backup (`-b` flag): create backups of the files it changes, appending a `.bak` extension to backup copies\n* dry-run (`-d` flag): output to stdout instead of replacing values inline\n* strict (`-s` flag): refuse to fallback to default values\n* verbose (`-v` flag): be verbose about it's operations\n* charset (`-c` flag): specify a custom charset to replace variables. Example: `/usr/local/bin/ep -c iso8859-1 *.conf`\n\n`ep` can also `exec()` another command by passing\n\n* `--` after all arguments to `ep`\n* the path to the binary and it's arguments\n\nExample: `/usr/local/bin/ep -v *.conf -- /usr/sbin/nginx -c /etc/nginx.conf`\n\nThis can be used to use `ep` to parse configs and execute the container process using Dockers `CMD`\n\n## Escaping\n\nIn case the file you want to modify already uses the pattern envplate is searching for ( e.g. for reading environment variables ) you can escape the sequence by adding a leading backslash `\\`. It's also possible to escape a leading backslash by adding an additional backslash. Basically a sequence with an even number of leading backslashes will be parsed, is the number of leading backslashes odd the sequence will be escaped.\n\nSee https://github.com/kreuzwerker/envplate#full-example\n\n## Why?\n\nFor apps running Docker which rely (fully or partially) on configuration files instead of being purely configured through environment variables.\n\nYou can directly download envplate binaries into your Dockerfile using Github releases like this:\n\n```\nRUN wget -q https://github.com/kreuzwerker/envplate/releases/download/v1.0.2/envplate_1.0.2_$(uname -s)_$(uname -m).tar.gz -O - | tar xz \u0026\u0026 mv envplate /usr/local/bin/ep \u0026\u0026 chmod +x /usr/local/bin/ep\n\n...\n\nCMD [ \"/usr/local/bin/ep\", \"-v\", \"/etc/nginx/nginx.conf\", \"--\", \"/usr/sbin/nginx\", \"-c\", \"/etc/nginx/nginx.conf\" ]\n```\n\n## Full example\n\n```\n$ cat /etc/foo.conf\nDatabase=${FOO_DATABASE}\nDatabaseSlave=${BAR_DATABASE:-db2.example.com}\nMode=fancy\nEscaped1=\\${FOO_DATABASE}\nNotEscaped1=\\\\${FOO_DATABASE}\nEscaped2=\\\\\\${BAR_DATABASE:-db2.example.com}\nNotEscaped2=\\\\\\\\${BAR_DATABASE:-db2.example.com}\n\n$ export FOO_DATABASE=db.example.com\n\n$ ep /etc/f*.conf\n\n$ cat /etc/foo.conf\nDatabase=db.example.com\nDatabaseSlave=db2.example.com\nMode=fancy\nEscaped1=${FOO_DATABASE}\nNotEscaped1=\\db.example.com\nEscaped2=\\${BAR_DATABASE:-db2.example.com}\nNotEscaped2=\\\\db2.example.com\n```\n\n### Sample docker file\n\n```\nFROM nginx:latest\nMAINTAINER Albert van t Hart \u003cavthart@gmail.com\u003e\n\nADD https://github.com/kreuzwerker/envplate/releases/download/v0.0.7/ep-linux /bin/ep\nRUN chmod +x /bin/ep\n\nEXPOSE 80 443\n\nCMD [ \"/bin/ep\", \"-v\", \"/etc/nginx/*.conf\", \"--\", \"/usr/sbin/nginx\", \"-g\", \"daemon off;\" ]\n```\nSource: https://github.com/avthart/docker-nginx-env","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkreuzwerker%2Fenvplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkreuzwerker%2Fenvplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkreuzwerker%2Fenvplate/lists"}