Commit 11c3d70
authored
Fix environment variable mapping for read-only mode (#1067)
Fix environment variable mapping for read-only mode configuration
Add SetEnvKeyReplacer to viper configuration to properly map environment
variables with underscores to flag names with dashes. This enables the
documented GITHUB_READ_ONLY=1 environment variable to work correctly.
Without this fix, viper was looking for GITHUB_READ-ONLY (with dash) but
the documentation and standard convention use GITHUB_READ_ONLY (with
underscore).
Fixes issue where read-only mode was not being activated when using
GITHUB_READ_ONLY=1 in Docker containers.1 parent 84ae009 commit 11c3d70
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments