Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koyashiro/export-secrets
Export GitHub Actions secrets as environment variables.
https://github.com/koyashiro/export-secrets
actions
Last synced: about 1 month ago
JSON representation
Export GitHub Actions secrets as environment variables.
- Host: GitHub
- URL: https://github.com/koyashiro/export-secrets
- Owner: koyashiro
- License: mit
- Created: 2024-04-13T05:22:43.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-24T12:52:28.000Z (9 months ago)
- Last Synced: 2024-04-24T16:25:50.388Z (9 months ago)
- Topics: actions
- Language: TypeScript
- Homepage: https://github.com/koyashiro/export-secrets-action
- Size: 451 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# export-secrets
Export GitHub Actions secrets as environment variables.
## Usage
Set the JSON of secrets to `secrets`.
```yaml
steps:
- uses: koyashiro/[email protected]
with:
secrets: ${{ toJSON(secrets) }}
```### Downcase `TF_VAR_`
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`.```yaml
steps:
- uses: koyashiro/[email protected]
with:
secrets: ${{ toJSON(secrets) }}
downcase-tf-var: true
```### Downcase `TF_TOKEN_`
If you want to downcase secrets starting with `TF_TOKEN_`, you can use the `downcase-tf-token` option.
For example, a secret like `TF_TOKEN_EXAMPLE_COM` will be exported as `TF_TOKEN_example_com`.```yaml
steps:
- uses: koyashiro/[email protected]
with:
secrets: ${{ toJSON(secrets) }}
downcase-tf-token: true
```