mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-09 18:28:15 +01:00
fix: only a call's first argument is a lookup name (GST-1064: getenv defaults and fallbacks are still checked; file names need a known extension)
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
2ed0622edc
commit
eebdf83cfa
3 files changed
+21
-13
No files matched your search
@@ -129,6 +129,11 @@ describe("env.kv: a name-shaped literal inside a call is a file or dict key, not
|
||||
String.raw`api_key = decrypt("prod-signing-key")`,
|
||||
String.raw`token = decrypt("correct_horse_battery_staple")`,
|
||||
String.raw`key = decrypt("qwhzxkvbnmplor")`,
|
||||
String.raw`SECRET_KEY = os.getenv("SECRET_KEY", "orange_monkey_pass")`,
|
||||
String.raw`password = os.environ.get("DB_PASSWORD", "purple_walrus")`,
|
||||
String.raw`token = resp.json().get("access_token", "orange_monkey_pass")`,
|
||||
String.raw`key = derive_secret("tigers.horse")`,
|
||||
String.raw`password = os.getenv("DB_PASSWORD", "qwhzxkvbnmplor.txt")`,
|
||||
],
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user