Skip to content

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

License

Notifications You must be signed in to change notification settings

muchobien/scoped-env

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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:

- 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.