@hackage / include-env

Include the value of an environment variable at compile time

Latest0.5.0.0

About

Metadata

  • Last updated , by ocramz
  • License BSD-3-Clause
  • Categories Development
  • Maintained by: oss@unfoldml.com

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.10.4
  2. 8.6.5

Readme

include-env

Embed secrets (e.g. API keys) from environment variables inside production artifacts without checking them into the repository.

This use case is relevant e.g. in continuous integration (CI) settings.

Example

In GitHub each private repository can have a number of secrets, which can be conveniently changed without being exposed as needed; GitHub Actions can pass repository secrets in as environment variables during any step, which is where this library comes in handy.