Skip to content

koyashiro/export-secrets

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

Folders and files

NameName
Last commit message
Last commit date
Apr 14, 2024
Apr 22, 2024
Apr 22, 2024
Apr 13, 2024
Apr 13, 2024
Apr 13, 2024
Apr 13, 2024
Apr 13, 2024
Apr 18, 2024
Apr 18, 2024
Apr 22, 2024
Apr 22, 2024
Apr 13, 2024
Apr 13, 2024
Apr 13, 2024

Repository files navigation

export-secrets-action

Export GitHub Actions secrets as environment variables.

Usage

Set the JSON of secrets to secrets.

steps:
  - uses: koyashiro/[email protected]
    with:
      secrets: ${{ toJSON(secrets) }}

If you want to downcase secrets starting with TF_VAR_, you can use the downcase-tf-var option. For example, a secret like TF_VAR_EXAMPLE will be exported as TF_VAR_example.

steps:
  - uses: koyashiro/[email protected]
    with:
      secrets: ${{ toJSON(secrets) }}
      downcase-tf-var: true