Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve README and drop quotes from hook env vars #651

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add more details on how the env vars are exported
  • Loading branch information
yermulnik committed Mar 25, 2024
commit eacd8a535f3f77e821e043dc12a88e79e996193c
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ If for config above set up `export CONFIG_NAME=.tflint; export CONFIG_EXT=hcl` b

You can specify environment variables that will be passed to the hook at runtime.

> [!IMPORTANT]
> Variable values are exported _verbatim_:
> - No interpolation or expansion are applied
> - The behavior is the same as if values would've been wrapped into single quotes
yermulnik marked this conversation as resolved.
Show resolved Hide resolved
> - The enclosing double quotes are removed if they are provided

Config example:

```yaml
Expand Down
Loading