horlakz/Write .env file from secrets
Creates a .env file using provided secret inputs. Supports both automatic dumping of all secrets and explicit env vars.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| secrets_json | JSON string of all secrets (use toJSON(secrets) to pass all secrets automatically) | no | — |
| env_vars | Explicit multiline KEY=VALUE pairs to write (can be used with secrets_json) | no | — |
| exclude_vars | Comma- or newline-separated secret names to exclude from secrets_json auto-dump mode | no | — |
| include_github_token | Set to true to include the automatically provided GITHUB_TOKEN in secrets_json auto-dump mode | no | false |
| file_path | Path where .env file should be created (default: .env) | no | .env |
Outputs
no outputs