Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/muchobien/scoped-env

A Github action to expose scoped secreta as environment variables or output
https://github.com/muchobien/scoped-env

action actions environment-variables github-actions typescript

Last synced: about 1 month ago
JSON representation

A Github action to expose scoped secreta as environment variables or output

Awesome Lists containing this project

README

        


CodeQL
build-test

# "Scoped Env" Action For GitHub Actions

A github action to select correct environments based on scope, e.g. `production` or `staging`.

## Usage

Add the following step to your workflow:

```yaml
- name: 'Select correct scope environment variables'
uses: muchobien/scoped-env@v1
with:
secrets: ${{ toJSON(secrets) }}
scope: PROD
includes: 'FROM_INCLUDES' # optional
exporters: 'env,output' # default, optional
overrides: 'false' # optional, default false (override existing environment variables)
```

## License Summary

This code is made available under the MIT license.